Skip to main content

20 - JPath::check Snooping out of bounds error

More
15 years 1 month ago - 15 years 1 month ago #24048 by squeakstar
Hey, whilst i have been tweaking my website a bit i believe i've done nothing in particular that could have upset the currency switcher other than upgrading to hikashop 1.5.3, and changing the comma to a decimal point in my 3 chosen currencies.

i have only just noticed but when i change currency now from the default £ to either $ or euro i get an error page with the somewhat cryptic message:

20 - JPath::check Snooping out of bounds @ JPATH_COMPONENT/views

and the follwoing standard messages:

You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a search engine that has an out-of-date listing for this site
a mistyped address
you have no access to this page
The requested resource was not found.
An error has occurred while processing your request.

help please! Thanks in advance!

if it helps url fails on is: squeakstar.co.uk/index.php/a-z/a-g/a-posters/currency/update
Last edit: 15 years 1 month ago by squeakstar.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24052 by nicolas
Hi,

Could you try to redownload HikaShop form our website and install it over your current version just to make sure that everything is ok with the HikaShop files ?

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24127 by squeakstar
Done that but still the same problem!

Any more ideas please? Anything more I can tell you, please ask.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24128 by squeakstar
Looking wider online i got the idea to turn off SEF.

When SEF is on currency switcher fails on change and i receive the error message as originally stated, and when off, currency switcher is working ok!!!

I need SEF on definitely, though i don't have URL rewriting on or ever have so far!

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago - 15 years 1 month ago #24131 by nicolas
That seems to be a problem on joomla >=1.6 with SEF on.
Please replace the code:
Code:
function __construct($config = array(),$skip=false){ parent::__construct($config,$skip); $this->display[]='update'; if(!$skip){ $this->registerDefaultTask('update'); } JRequest::setVar('tmpl','component'); }
by:
Code:
function __construct($config = array(),$skip=false){ $this->display[]='update'; if(!$skip){ parent::__construct($config,$skip); $this->registerDefaultTask('update'); } JRequest::setVar('tmpl','component'); }

in the file components/com_hikashop/controllers/currency.php and try again ?
Last edit: 15 years 1 month ago by nicolas.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24149 by squeakstar
Sorry - I'm on joomla 1.6!

I will backup the file and check to see if that code is relevant, and try throwing your suggestion in. Won't be able to check until tonight. If being on version 1.6 makes your suggestion irrelevant.. let em know!

thanks Nicholas!

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago - 15 years 1 month ago #24209 by squeakstar
(woops sorry double posted)
Last edit: 15 years 1 month ago by squeakstar.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24210 by squeakstar
Ok changed the file as suggested but now when i change currency i get this error..


Fatal error: Call to undefined method CurrencyController::isIn() in /data01/mattyh/public_html/components/com_hikashop/router.php on line 108

line 108/109 is this:
Code:
if($controller->isIn($segments[1],array('display','modify_views','add','modify','delete'))){ $skip = true;

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24215 by nicolas
Ah yes, you also have to change the line:
class CurrencyController extends JController{
by:
class CurrencyController extends hikashopController{
in the file components/com_hikashop/controllers/currency.php to not have that problem.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24244 by squeakstar
cool - will have another bash in joomla tonight.

btw - is this a bug unique to a few and something that will be updated in a future release?

Many thanks - appreciative as ever!!!

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24250 by nicolas
That will be added to next release yes.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24251 by squeakstar
great - worried i was going to slip out of being in sync with releases. will update you tonight with confirmation of the amended fix. thanks!!!

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #24285 by squeakstar
update as promised: issue is fixed!

again many thanks :D

Please Log in or Create an account to join the conversation.

Time to create page: 0.288 seconds
Powered by Kunena Forum