ProsePoint Express: hosted newspaper website content management software

site suddenly not loading - Fatal error: Call to undefined function zen_theme()

8 replies [Last post]
skingers
User offline. Last seen 1 year 27 weeks ago. Offline
Joined: 07/05/2009
Posts:

HELP...

Everything was going so well, installed, 0.19, 0.21, 0.22 and trialled site on sub domain.  Everything great and then moved to main domain and still everything great.  Site was fine over the weekend and then I checked the site and errors...

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Fatal error: Call to undefined function zen_theme() in /home/thriftym/public_html/profiles/prosepoint/themes/tma/tma/template.php on line 72

I have checked php and compared to backup, no change.... I have restored database and nothing... It works immediately after restore (loads) and then goes down....

I cannot think what has gone wrong... Any ideas?

Thanks in advance-Mark

 

beng
User offline. Last seen 1 week 3 days ago. Offline
Joined: 27/02/2009
Posts:
There are a number of things to check.

Hi,

There are a number of things to check.

zen_theme() is defined in the file .../profiles/prosepoint/themes/zen/zen/template.php. Can you check this file is present, and uncorrupted?

Also, what was the sequence of events leading up to the errors? You say you've upgraded to ProsePoint 0.22 - that was successful. Then you moved the site to another domain - that was successful? Did you do anything afterwards that might caused this issue?

It may be that the move to another domain has confused ProsePoint, and all you need is to refresh the cache so that ProsePoint rescans the filesystem to find out where are the files are now located.

skingers
User offline. Last seen 1 year 27 weeks ago. Offline
Joined: 07/05/2009
Posts:
tech help...

ok... sequence of events was; upgrade, test, move from subdomain, test... everything ok at this point... move appeared successful and accessible for a couple of days and then it died.... cache could an issue, how do I refresh cache?

It is looking more like a cache issue, I have removed subdomain, deleted old files and restored earlier version of mysql and it did not work initially but did after a short time.... how do you force a cache refresh?  I now have to update the database with later version to catch up on amends made subsequent to move and I would like to flush cache post restore.

Thanks-Mark

beng
User offline. Last seen 1 week 3 days ago. Offline
Joined: 27/02/2009
Posts:
...

Hi,

If you are logged in, you can try Clearing the cache to help with common ProsePoint issues.

If you are not logged in, or that PHP error is stopping you from accessing the site, it will get a bit tricky.

You could try visiting update.php and running an update. Even if an update does nothing, it still causes ProsePoint to rescan the filesystem and this may be sufficient.

If you visit update.php and it says 'Access denied', there are some instructions about editing settings.php to bypass the access restrictions to let yourself in.

If all that doesn't work, I'll probably have to get you to edit some code to work around the fatal PHP error so you can at least access the site.

Also, I don't suppose there is a backup you can rollback to? That might be the easier path - resuming from a stable position.

skingers
User offline. Last seen 1 year 27 weeks ago. Offline
Joined: 07/05/2009
Posts:
ERROR IN ZEN THINGY

I am going mad... again I have done all the obvious things and still keep getting ERRORS... see below..

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Fatal error: Call to undefined function zen_preprocess_node() in /home/thriftym/public_html/profiles/prosepoint/themes/tma2/template.php on line 133

I have tried all the ideas suggested and they seem to work but the error keeps recurring.  I will have to rip it and go with another solution soon... Losing alot of credibility...

Any ideas?  I do not understand why it works and then crashes. And then works and then crashes.  I have restored database several times and sometimnes that fixes the problem, other times I copy backed up files across, flush cache and sometimes it works... but it still crashes...

Is it a rebuild or a 'walk away'?  The annoying thing is I had this working perfectly on a subdomian for months of testing and since I have moved it to production it sucks...

I have removed and re-installed all files (except Sites directory) and now I get the following errors...

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 463

Warning: Invalid argument supplied for foreach() in /home/thriftym/public_html/includes/theme.inc on line 468

Fatal error: Call to undefined function zen_theme() in /home/thriftym/public_html/profiles/prosepoint/themes/tma/tma/template.php on line 72

I have run update.php and still I get the errors... And I have checked database, it's OK... still I cannot get in..  I have downloaded relevant files (listed in the errors) into Notepad and viewed code and it seems that is is a call to themes...  Perhaps it is the themes hierachy (in Zen) that is not running as it should...?
HELP...  Thanks-Mark

 

beng
User offline. Last seen 1 week 3 days ago. Offline
Joined: 27/02/2009
Posts:
It could be file corruption

It could be file corruption or a typo in the theme files. Have you made any changes to the source files of ProsePoint?

skingers
User offline. Last seen 1 year 27 weeks ago. Offline
Joined: 07/05/2009
Posts:
Captcha & logintoboggan

NO, none... I deleted all the files and re-installed from a clean download.... BUT I HAVE FIXED IT:)  The issue was with latest version of captcha  and/or logintoboggan, see version details below:

Official release from CVS tag: DRUPAL-6--2-0-RC1
First released: June 13, 2009 - 22:26

Download: captcha-6.x-2.0-rc1.tar.gz
Size: 83.03 KB
md5_file hash: 31411d9551200ff5422876aac96069d9
Last updated: June 13, 2009 - 22:30
Official release from CVS tag: DRUPAL-6--1-5
First released: May 13, 2009 - 16:43
Download: logintoboggan-6.x-1.5.tar.gz
Size: 64.15 KB
md5_file hash: c0d300760e41932550e4876d1a77d1e2
Last updated: May 13, 2009 - 16:46
I have not yet re-installed the OLDER version of captcha but I will and see if that works with prosepoint 0.22.  Or an older version of logintoboggan but once I have I will update post.  Any idea on versions and testing with prosepoint 0.22?
It would be great if this was tested bith modules are key....
Thanks-Mark

beng
User offline. Last seen 1 week 3 days ago. Offline
Joined: 27/02/2009
Posts:
That's good news then, if

That's good news then, if confirmed. No, I don't really have any comments on testing. As long as it works for you, that's good enough for me. Sorry, but we can't test every single module out there because we don't have the manpower to do so. We only test the ones that are included in ProsePoint as standard, and then make sure the rest of the ProsePoint code adheres to Drupal conventions. Usually, that's good enough, but every situation will differ depending on the details.

skingers
User offline. Last seen 1 year 27 weeks ago. Offline
Joined: 07/05/2009
Posts:
Understand you cannot test

Understand you cannot test ALL modules but captcha is standard functionality on any site today, agree logintoboggan is a  bit more esoteric.... I will post results of testing both modules and versions when complete.  Shouldn't captcha be addded to prosepoint functionality?

Thanks-Mark