My environment is PHP 5.3, Drupal 6.17, with Date, Views and couple other modules.

I just upgraded contemplate from version 1.1 to version 1.2, and it appears many parts of Contemplate no longer work.

If I go to "admin/settings/contemplate" I get the following error message:

warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'contemplate_system_settings' not found or invalid function name in /var/www/html/includes/form.inc on line 372.

If I go to "admin/content/types/templates" I get a WSOD; the logs tell me this:

warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'contemplate_edit_type' not found or invalid function name in /var/www/html/includes/menu.inc on line 348.

The same PHP error appears whenever someone views contemplate enabled content.

I will revert to 6.x-1.1 now.

Comments

jrglasgow’s picture

Status: Active » Postponed (maintainer needs more info)

did you clear the cache for your site?

ShutterFreak’s picture

No, I did not.

I ran update.php alone.

There was no mention of having to flush the site cache after upgrading contemplate.

Is this a known problem?

jrglasgow’s picture

if clearing the cache fixes the problem, then we will know that it is a solution

jrglasgow’s picture

The errors suggest that contemplate.module cannot be found

If the cache is cleared and the pages don't even show up on the menu, then we know that contemplate.module is missing.

There have been problems in the past where the packager misplaces a file and it is not included in the tar.gz. I have checked the contemplate-6.x-1.2.tar.gz and the file is there, so I know that isn't the problem.

ShutterFreak’s picture

I can confirm that clearing the cache solves my problem.

I however noticed that I get 2 PHP5.3 warning messages when running update.php:

array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/html/update.php on line 174.
Invalid argument supplied for foreach() in /var/www/html/update.php on line 338.

Looks like there's something wrong with hook_update?

jrglasgow’s picture

Status: Postponed (maintainer needs more info) » Fixed

That is not a PHP 5.3 error, it has been fixed though.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tyler-durden’s picture

Status: Closed (fixed) » Active

I have just upgraded from 6.x-1.1 to 6.x-1.2 dated July 21st 2010, and got the same exact error.

array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/html/update.php on line 174.
Invalid argument supplied for foreach() in /var/www/html/update.php on line 338.

I don't think this issue is fixed, and I am not using any caching in my test environment.

lubnax’s picture

subscribing

dgtlmoon’s picture

Status: Active » Closed (cannot reproduce)

I tested with Drupal-6.20 installed contemplate 6-x.1.1, added a page template and tested that i could see my changes were working.

Then I ran drush pm-update and upgraded the module.

Update status information on all installed and enabled Drupal projects:
 Name                             Installed version  Proposed version  Status                                   
 Administration menu              6.x-1.6            6.x-1.6           Up to date                               
 Drupal core                      6.22               6.22              Up to date                               
 Content Templates (Contemplate)  6.x-1.1            6.x-1.2           Update available                         


Code updates will be made to the following projects: Content Templates (Contemplate) [contemplate-6.x-1.2]

I visited both of the admin pages for contemplate and did not manage to reproduce the problem, marking as closed, but please try again, i know this issue is old :(