Shop-problems, undefined view: ezShop

Author Message

Christian Johansen

Friday 10 February 2006 1:09:51 am

I get this in my error log:

[ Feb 07 2006 23:18:46 ] [100.100.100.100] Undefined view: eZShop::
[ Feb 07 2006 23:18:46 ] [100.100.100.100] Error ocurred using URI: /shop/index.php/shop/shop

when trying to access the Shop module. Everything else works as expected. What's going on? It seems pretty straight forward, but I don't recall having done anything special with the shop module at all, and I don't know why the view is missing (that seems to be the problem?). I'm not too clear on what the view is supposed to be either.

Antoine Schmid

Friday 10 February 2006 1:35:41 am

Hi,

The error occurs because there is no view called shop in the shop module.

The views are add, basket, etc.You can have the complete list in the file module.php in the folder kernel/shop.

Now, if you want to view your basket, just use the url : /index.php/shop/basket

The views are the way to display the content of your module. So in the url above, you said to eZ publish that you want to view the basket of the module shop...

Antoine

Christian Johansen

Friday 10 February 2006 1:51:47 am

Thanks. It seems that I drew the wrong conclusions as to what logged message belonged to what error... I try to access the Shop module in the admin interface, /index.php/shop_admin/shop/orderlist

It abruptly ends with this message:

Fatal error: Call to a member function on a non-object in /path/to/ez/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.

Furthermore, debug information indicates that alot of tempaltes in admin_preview is missing... I'll check up on it.

Christian Johansen

Friday 10 February 2006 2:12:15 am

Wierd... I get many messages like this:

Error: eZTemplateDesignResource::overrideArray  	Feb 10 2006 11:07:17

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

and my admin/override.ini.append.php has this:

[article]
Source=node/view/admin_preview.tpl
MatchFile=admin_preview/article.tpl
Subdir=templates
Match[class_identifier]=article

and the file design/admin/override/templates/admin_preview/article.tpl exists. The error log says nothing, and I really cannot see any reason why it shouldn't be able to load the template? I get dosens of these.

Stuart Fenton

Monday 10 April 2006 5:14:36 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

Christian Johansen

Monday 10 April 2006 5:42:24 am

Thanks, now I know this for next time... :) I actually gave up and deleted the whole thing installing eZ Publish over and started fresh. It's all working now.

Stuart Fenton

Wednesday 12 April 2006 7:22:55 am

Shame.

Glad I could help.

-- 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.

eZ debug

Timing: Jan 18 2025 19:07:14
Script start
Timing: Jan 18 2025 19:07:14
Module start 'layout'
Timing: Jan 18 2025 19:07:14
Module start 'content'
Timing: Jan 18 2025 19:07:15
Module end 'content'
Timing: Jan 18 2025 19:07:15
Script end

Main resources:

Total runtime0.9335 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.1641152.6406
Module start 'layout' 0.00730.0048 741.804739.4609
Module start 'content' 0.01210.9198 781.2656615.1250
Module end 'content' 0.93190.0016 1,396.390616.1563
Script end 0.9335  1,412.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4294160.0003
Check MTime0.00160.1670160.0001
Mysql Total
Database connection0.00080.090710.0008
Mysqli_queries0.858992.0071710.0121
Looping result0.00130.1352690.0000
Template Total0.875093.720.4375
Template load0.00220.237320.0011
Template processing0.872793.486320.4364
Template load and register function0.00020.020810.0002
states
state_id_array0.00440.469110.0044
state_identifier_array0.00210.227020.0011
Override
Cache load0.00190.2052370.0001
Sytem overhead
Fetch class attribute can translate value0.00110.120030.0004
Fetch class attribute name0.00120.124880.0001
XML
Image XML parsing0.00370.396730.0012
class_abstraction
Instantiating content class attribute0.00000.002090.0000
General
dbfile0.00320.3448160.0002
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs