Forums / Developer / Shop problem

Shop problem

Author Message

David Jones

Wednesday 06 September 2006 7:01:13 am

Hi,

I'm trying to set up a basic shop but am having problems.

I have created a folder in the root called "Shop"

But when I hit

http://someting.com/shop

I get the following error and debug

Fatal error: Call to a member function on a non-object in e:\apachesites\ezpublish\ezpublish\kernel\content\ezcontentfunctioncollection.php on line 1047
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.
eZ debug
Notice: eZMySQLDB::query(0.000 ms) query number per page:0 	Sep 06 2006 14:55:52

SET NAMES 'utf8'

Timing: 	Sep 06 2006 14:55:52

Module start 'shop'

Error: eZModule 	Sep 06 2006 14:55:52

Undefined view: eZShop:: 

Error: error/view.php 	Sep 06 2006 14:55:52

Error ocurred using URI: /shop

Timing: 	Sep 06 2006 14:55:52

Module end 'error'

Error: eZContentObject::fetch() 	Sep 06 2006 14:55:52

Object not found ()


....

I have given access to the anonymous user to the buy function.

Any ideas?

David Jones

Wednesday 06 September 2006 7:11:48 am

interestingly if i hit

/shop__1 it goes through to my products etc but when I click to add to basket it attempts to go to this page

shop/basket

Which throws this error

Fatal error: Call to a member function on a non-object in e:\apachesites\ezpublish\ezpublish\kernel\content\ezcontentfunctioncollection.php on line 1047
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.
eZ debug
Notice: eZMySQLDB::query(0.000 ms) query number per page:0 	Sep 06 2006 15:10:35

SET NAMES 'utf8'

Timing: 	Sep 06 2006 15:10:35

Module start 'shop'

Timing: 	Sep 06 2006 15:10:35

Module end 'shop'

Error: eZContentObject::fetch() 	Sep 06 2006 15:10:35

Object not found ()

....

Please help

Stuart Fenton

Wednesday 06 September 2006 7:21:42 am

EZ does not always name the path the same as the objects. If you create three folders called "Shop" they will come out as shop_1, shop_2, shop_3

This happens when a different object has the same name and it's clashing.

Regards
Fats

-- Stuart

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

David Jones

Wednesday 06 September 2006 7:32:13 am

well that solves that mystery.
but why is the basket not working?

David Jones

Wednesday 06 September 2006 8:02:08 am

Sorry for giving you a running commentary on what I'm doing but I really need to get this working.

I decided the best this to do was to uninstall the products package and reinstall it again.

It uninstalled fine.

When I reinstall I get past the site mapping selection, to the location of the products folder selection.

I leave it in it's default location ie the root

and then this happens

Fatal error: Call to a member function on a non-object in e:\apachesites\ezpublish\ezpublish\lib\ezxml\classes\ezdomnode.php on line 415
Fatal error: eZ publish did not finish its request

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

Warning: Invalid argument supplied for foreach() in e:\apachesites\ezpublish\ezpublish\kernel\common\eztemplatedesignresource.php on line 816

Notice: Undefined variable: matchFileArray in e:\apachesites\ezpublish\ezpublish\kernel\common\eztemplatedesignresource.php on line 895

Warning: array_keys(): The first argument should be an array in e:\apachesites\ezpublish\ezpublish\kernel\common\eztemplatedesignresource.php on line 483

Warning: Invalid argument supplied for foreach() in e:\apachesites\ezpublish\ezpublish\kernel\common\eztemplatedesignresource.php on line 483

Parse error: parse error, unexpected ';', expecting ')' in e:\apachesites\ezpublish\apache\var\omf\cache\override\override_460177151.php on line 3

Please, please, any ideas?

Claudia Kosny

Wednesday 06 September 2006 11:43:15 am

Hi David

I am unfortunately not sure why it is not working, the error messages do not give enough info in this case. What I can tell you for sure is that you never should name a folder 'shop' or any other of the names that are used as foldernames in the kernel folder of EZ. For instance the form action in the basket.tpl is set to 'shop/basket' which calls the basket.php in the folder kernel/shop. If you now have a folder called 'shop' somewhere else, EZ gets confused. I assume this caused the first errors you had.

Claudia

David Jones

Thursday 07 September 2006 1:03:00 am

Thanks Claudia,

I now have no folders called shop.

Also, for some reason, having done nothing different I tried to install the products package this morning and it went in first time. Strange.

So I have a products folder in the ezroot which I can click through to the default products ie black box, but when I hit the add to basket button I get the error again.

I simply can't add things to a basket.

It's like the shop isn't installed properly, maybe.

How can I confirm that the shop is indeed setup correctly.

Thanks again

David Jones

Friday 08 September 2006 6:59:58 am

Not being able to use the shop is a major problem.

Can any body please help.

Samuel Sauder

Friday 08 September 2006 8:54:22 am

Just some thoughts:
-buy support from ez
-did you clear the cache?
-what version of ez?
-does it work with an administrator account?

Rune Langseid

Friday 08 September 2006 9:10:42 am

> It's like the shop isn't installe properly, maybe.
No additional php code is installed through packages.
The shop module is located in ezroot_directory/kernel/shop/.

It looks like a problem with the cache. Your post from "Wednesday 06 September 2006 5:02:08 pm" verifies this, at least the warnings. Try to delete the content of your cache directories, but be carefull if this is a live site.

David Jones

Monday 11 September 2006 5:26:37 am

Rune, Thanks for your reply,

The module appears to be in the correct place.

I deleted everything from the cache directory

\var\cache

However, I get the same problem when I hit add to basket.

Fatal error: Call to a member function on a non-object in e:\apachesites\ezpublish\ezpublish\kernel\content\ezcontentfunctioncollection.php on line 1047
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.
eZ debug
Notice: eZMySQLDB::query(0.000 ms) query number per page:0 	Sep 11 2006 13:22:20

SET NAMES 'utf8'

Timing: 	Sep 11 2006 13:22:20

Module start 'shop'

Timing: 	Sep 11 2006 13:22:20

Module end 'shop'

Error: eZContentObject::fetch() 	Sep 11 2006 13:22:20

Object not found ()

Please, does anybody have any ideas?

Stuart Fenton

Monday 11 September 2006 5:41:17 am

I'd do a clean install into a separate directory and database and test the basic ezPublish installation first.

This way you can eliminate any issues which are to do with your setup first.

Regards
Fats

-- Stuart

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

David Jones

Tuesday 12 September 2006 3:11:58 am

Thanks Fats,

I was hoping that that would be a last resort.

Is there anything else I can check first?

Where are the config files for the shop? Whould should they say?

It took me soo long to get this system going in the first place that I really do not want to start again.

Thanks