Two of my Drupal sites (separate source files, same server) are having major problems with phpTemplate themes.
Every page just displays the bare bones HTML of each theme with no variables being displayed. Style sheets, content, links, everything, doesn't get displayed. When I turned on error reporting by manually editing the settings in the DB, I get these errors:
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/sipefree/public_html/ts/themes/engines/phptemplate/phptemplate.engine on line 42.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/sipefree/public_html/ts/themes/engines/phptemplate/phptemplate.engine on line 42.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/sipefree/public_html/ts/themes/engines/phptemplate/phptemplate.engine on line 42.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/sipefree/public_html/ts/themes/engines/phptemplate/phptemplate.engine on line 42.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/sipefree/public_html/ts/themes/engines/phptemplate/phptemplate.engine on line 42.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/sipefree/public_html/ts/themes/engines/phptemplate/phptemplate.engine on line 42.
warning: Missing argument 1 for theme_help() in /home/sipefree/public_html/ts/includes/theme.inc on line 35.
warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/sipefree/public_html/ts/themes/engines/phptemplate/phptemplate.engine on line 42.The problem occurred completely randomly yesterday, at the same time, on both websites. I have reason to believe my hosting may have been upgraded to PHP 5 or something, because I have seen problems that I had (e.g. primary links not working) posted about on the forums here.
I don't think it's a module I installed or a problem with my theme, because they were all working perfectly a few days ago.
Here are the URLs to the sites in question:
http://sgs-international.com/ (My company's main website)
http://ts.sgs-international.com/ (A temporary location for a website I am developing hand hosting for someone)
I have reason to believe that the problem lies with phpTemplate. The XTemplate themes that I manually switched one of the sites to for a period are working perfectly.
Thanks,
Simon Free.
EDIT: I just ran a phpinfo(). The server is indeed running PHP 5.0.4, and it was installed yesterday, when the troubles started,
Comments
I'm sorry to bump this but
I'm sorry to bump this but it's been 24 hours and I have live sites that need to get back up.
Have you fixed this? It
Have you fixed this? It appears to be displaying formatted pages?
I just see this error across the top of each page...
warning: Missing argument 1 for theme_help() in /home/sipefree/public_html/ts/includes/theme.inc on line 35.
I upgraded one of the sites
I upgraded one of the sites to CVS and installed the CVS version of the theme I used as a base for mine.
The errors are still occurring, and the theme is broken in some places.
Current issues with CVS...
There are several reported issues with the theme system (more specially, the theme settings forms):
http://drupal.org/node/34170
http://drupal.org/node/35225
http://drupal.org/node/35227
http://drupal.org/node/33902
http://drupal.org/node/34779
http://drupal.org/node/35114
If you have updated your sites in the last week or so, I'm afraid you may have to wait until some of the creases are ironed out after the recent introduction of the new forms API... and I'll also point you to my comment at http://drupal.org/node/35104#comment-51204: upgrading a production site to HEAD, especially after a change as large as the forms API, is A Bad Idea.
---
paul byrne
paul.leafish.co.uk/ | www.leafish.co.uk/
---
Paul Byrne
pfaocle.co.uk | CTI digital
We haven't upgraded. The
We haven't upgraded. The only thing that has happened is that the server was upgraded to PHP 5, which drupal is not so tight with.
I think I can probably get the latest CVS and then fix the problems I'm having myself. I'm pretty proficient at PHP so I'd say I can iron out the bugs that I'm seeing.
Sorry
I must've been confused by that... ;)
---
paul byrne
paul.leafish.co.uk/ | www.leafish.co.uk/
---
Paul Byrne
pfaocle.co.uk | CTI digital
Which version of php5?
Which version of php5? There have been several reported issues specifically with php5.0.5. http://drupal.org/node/32739
-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide
It's PHP 5.0.4.I have
It's PHP 5.0.4.
I have upgraded one of my sites to yesterday's CVS. I have narrowed down the problem to search.module and userpoints.module.
When I activate either, i get this error:
array_merge() [function.array-merge]: Argument #2 is not an array in /home/sipefree/public_html/ts/modules/search.module on line 922.Line 922 of search.module:
$form = array_merge($form, module_invoke($type, 'search', 'form', $keys));