20 - JPath::check Snooping out of bounds error

  • Posts: 51
  • Thank you received: 0
13 years 3 months ago #24048

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: 13 years 3 months ago by squeakstar.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #24052

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.

  • Posts: 51
  • Thank you received: 0
13 years 3 months ago #24127

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.

  • Posts: 51
  • Thank you received: 0
13 years 3 months ago #24128

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.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #24131

That seems to be a problem on joomla >=1.6 with SEF on.
Please replace the code:

function __construct($config = array(),$skip=false){
		parent::__construct($config,$skip);
		$this->display[]='update';
		if(!$skip){
			$this->registerDefaultTask('update');
		}
		JRequest::setVar('tmpl','component');
	}
by:
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: 13 years 3 months ago by nicolas.

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

  • Posts: 51
  • Thank you received: 0
13 years 3 months ago #24149

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.

  • Posts: 51
  • Thank you received: 0
13 years 3 months ago #24209

(woops sorry double posted)

Last edit: 13 years 3 months ago by squeakstar.

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

  • Posts: 51
  • Thank you received: 0
13 years 3 months ago #24210

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:

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.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #24215

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.

  • Posts: 51
  • Thank you received: 0
13 years 3 months ago #24244

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.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 3 months ago #24250

That will be added to next release yes.

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

  • Posts: 51
  • Thank you received: 0
13 years 3 months ago #24251

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.

  • Posts: 51
  • Thank you received: 0
13 years 3 months ago #24285

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.087 seconds
Powered by Kunena Forum