gCart error!!!

8 views
Skip to first unread message

Chris Quang

unread,
Oct 30, 2008, 5:53:03 AM10/30/08
to KiweeCommerce Forum
Hello everybody,
I have an error with the following content but i don't know how to
figure it out:
------------------------------------
« MODx Parse Error »
MODx encountered the following error while attempting to parse the
requested resource:
« `` is not numeric and may not be passed to makeUrl() »
------------------------------------


I found that the error reside in this call of template:
--------------------------------------
<!-- gCart - begin -->
[!eCart? &gItemTpl=`gItemTplx` &gCartTpl=`gCartTplx`
&gEmptyTpl=`gEmptyTplx` &gCurrencyTplx=`gCurrencyTplx`
&pageStatus='checkout'!]
<!-- gCart - end -->
--------------------------------------

any suggestion?

Chris.

Richard Northcott

unread,
Oct 30, 2008, 6:40:35 AM10/30/08
to kiweec...@googlegroups.com
Hi Chris

This is an issue where the $modx class is not available and therefore the $modx->makeURL fails - from memory I think this was likely to occur when going directly to a front-end page before going into the admin/backend. I have been revising the handling of the variables to try to ensure that this wont happen and misimise the reloading that takes place.
I'm sorry that I can't give you a simple fix for the issue.


Richard

Chris Quang

unread,
Oct 30, 2008, 11:16:09 AM10/30/08
to KiweeCommerce Forum
Thanks Richard,
I'll comment out this line and make it works with lack of some
functions. Hope you will give me the solution for this issue. besides
debugging and fixing some errors of Kiwee, I'm worrying about the
speed of Kiwee commerce, do you think it is not so quick? It usually
take me about 10 - 15 second to complete an action locally.
have you ever got this problem?

Chris.


On Oct 30, 5:40 pm, "Richard Northcott" <richard...@gmail.com> wrote:
> Hi Chris
>
> This is an issue where the $modx class is not available and therefore the
> $modx->makeURL fails - from memory I think this was likely to occur when
> going directly to a front-end page before going into the admin/backend. I
> have been revising the handling of the variables to try to ensure that this
> wont happen and misimise the reloading that takes place.
> I'm sorry that I can't give you a simple fix for the issue.
>
> Richard
>

Kevin Hoang

unread,
Oct 30, 2008, 11:46:33 AM10/30/08
to KiweeCommerce Forum
I got same error when I view checkout basket document.
I think it have some exceptions in eValues.inc.php at line 162. (Check
for loop)
At that for loop, it get some arguments invalid for makeURL function.
I don't know how to I fix that, so I can't help more.

Richard Northcott

unread,
Oct 30, 2008, 5:12:08 PM10/30/08
to kiweec...@googlegroups.com
Hi Chris

What action are you doing when its taking that long?


Richard

Richard Northcott

unread,
Oct 30, 2008, 5:21:12 PM10/30/08
to kiweec...@googlegroups.com
Hi Kevin

If it is related to the loop at 162 it make have something to do with the lack of values stored for the document ids for privacy_doc and tandc_doc (goto the SiteConfig section and change these to be a different page, save the settings and then change them again to be another page; this should have the effect of forcing it to be set otherwise you may need to do a print_r (array print) of both the $nameArray and the $valArray to see what each named item has as a value

print _r($nameArray);
print _r($valArray);


Richard

Chris Quang

unread,
Oct 31, 2008, 12:26:49 AM10/31/08
to KiweeCommerce Forum
Hi Richard,

when I comment out the line which contains errors as i mentioned
above, the product details site worked but very slow. this is an
example of my old site:
http://www.miraclemineralasia.com/index.php?id=4011

Chris

On Oct 31, 4:21 am, "Richard Northcott" <richard...@gmail.com> wrote:
> Hi Kevin
>
> If it is related to the loop at 162 it make have something to do with the
> lack of values stored for the document ids for privacy_doc and tandc_doc
> (goto the SiteConfig section and change these to be a different page, save
> the settings and then change them again to be another page; this should have
> the effect of forcing it to be set otherwise you may need to do a print_r
> (array print) of both the $nameArray and the $valArray to see what each
> named item has as a value
>
> print _r($nameArray);
> print _r($valArray);
>
> Richard
>

Richard Northcott

unread,
Oct 31, 2008, 9:16:54 AM10/31/08
to kiweec...@googlegroups.com
Hi Chris

Yes the page is loading very slowly. I would have to look at how the code is working to understand where the issue is coming from. I will try to check out an install on a live server to see if there is a slowdown problem hopefully this w/end.


Richard
Reply all
Reply to author
Forward
0 new messages