Unable to load template - even though it exists

Author Message

Christian Johansen

Thursday 16 February 2006 3:15:48 pm

I'm having weird problems with my installation. I have a shop that's just about ready to go. Everything works, except the Shop module in the admin interface. When I try to access it I get this:

Fatal error: Call to a member function on a non-object in /path/to/ezpublish/kernel/classes/shopaccounthandlers/ezdefaultshopaccounthandler.php on line 75
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.

Notice: Undefined index: /setup/debug_toolbar.tpl in /path/to/ezpublish/kernel/common/eztemplatedesignresource.php on line 384

Notice: Only variable references should be returned by reference in /path/to/ezpublish/lib/eztemplate/classes/eztemplate.php on line 793

Then debug displays ALOT of these:

Error: eZTemplateDesignResource::overrideArray  	Feb 16 2006 23:05:47

Custom match file: path 'admin_preview/article.tpl' not found in any resource. Check template settings in settings/override.ini

Error: eZDebug::writeFile 	Feb 16 2006 23:05:47

Cannot open log file 'var/log/error.log' for writing
The web server must be allowed to modify the file.
File logging for 'var/log/error.log' is disabled.

Error: eZTemplateDesignResource::overrideArray, tried files  	Feb 16 2006 23:05:47

design/standard/templates/admin_preview/article.tpl, design/standard/override/templates/admin_preview/article.tpl, design/admin/override/templates/admin_preview/article.tpl, design/admin/templates/admin_preview/article.tpl

Only weird thing here is that design/admin/override/templates/admin_preview/article.tpl exists and has 777 permissions. Why can't it read it?

Christian Johansen

Thursday 23 February 2006 1:44:01 am

Anyone? I'm really stuck on this...

Łukasz Serwatka

Thursday 23 February 2006 1:50:51 am

What is your environment configuration? Which eZ publish version do you use?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Christian Johansen

Thursday 23 February 2006 6:19:42 am

It's on a linux server, the version is 3.7. It's a shared hosting - what more do you need? I guess it's kinda crucial to add that this did in fact work, then the whole site was moved to a local windows server for development and back.

A lot of trouble followed from that, but now everything works again except for the templates. It's so weird because it displays a path to a template and says it can't find it - but if I copy-paste that path into emacs or whatever I'm able to open it.

Łukasz Serwatka

Thursday 23 February 2006 6:56:38 am

Your eZ publish installation crashes here:

Fatal error: Call to a member function on a non-object in /path/to/ezpublish/kernel/classes/shopaccounthandlers/ezdefaultshopaccounthandler.php on line 75 
Fatal error: eZ publish did not finish its request 
 
The execution of eZ publish was abruptly ended, the debug output is present below. 

Every error below is result fo this crash. It is difficult to say why, without checking your database, and access to installation. When eZ publish can't find template reports error/warnning in debug output without fatal errors. Please contact support@ez.no in this case if you need help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Christian Johansen

Thursday 23 February 2006 8:22:26 am

Could I try to replace the php-file with a healthy one? I suspected that the crash was because it couldn't find any templates. I guessed that it made an object out of a template somehow, and when there were no templates it crashed...

Christian Johansen

Sunday 19 March 2006 11:25:43 pm

I'm still fighting this thing... I tried to mail the EZ crew and they told me to try posting my errors here, so here it is: http://www.entartetemusik.com/help.html

Everything but the shop module works as expected, so most of the templates that it's unable to load here are being loaded on other pages. It also complains about having trouble writing to the warning log-file. It has write-access but it also has a wierd star after it which I don't know the meaning of:

-rwxrwxrwx    1 dummy dummy    16328 Mar 15 23:31 warning.log*

Please can anyone offer any help on this?

Stuart Fenton

Monday 10 April 2006 5:13:43 am

Try dumping your shop database as it might be corrupted. Usually from development when things are deleted before ship.

php -C update/common/scripts/cleanup.php shop

This command will clean the shop database. You will loose all the data in the shop so do a backup of your database before doing this but is should work.

Regards
Fats

-- Stuart

stuart@grandmore.com
http://www.grandmore.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.