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
Comment #1
jrglasgow commenteddid you clear the cache for your site?
Comment #2
ShutterFreak commentedNo, 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?
Comment #3
jrglasgow commentedif clearing the cache fixes the problem, then we will know that it is a solution
Comment #4
jrglasgow commentedThe 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.
Comment #5
ShutterFreak commentedI 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?
Comment #6
jrglasgow commentedThat is not a PHP 5.3 error, it has been fixed though.
Comment #8
tyler-durden commentedI 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.
Comment #9
lubnax commentedsubscribing
Comment #10
dgtlmoon commentedI 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.
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 :(