403 Errors Upon update to 2.2.3

  • Posts: 30
  • Thank you received: 2
10 years 4 months ago #135819

-- url of the page with the problem -- development site
-- HikaShop version -- :2.2.3
-- Joomla version -- : 3.2
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Friends: just attempted an update to 2.2.3. Current version was just downloaded from your site. We started working on some views, and were given a 403 access forbidden error when we attempted to access them. At the front end, we recieved a 403 error at checkout. We immediately restored our site back to 2.2.2. via backup and all is OK. Thought you might want to know, since the update is new. Thanks.

Nadine at Solia.

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
10 years 4 months ago #135821

Hi,

Thank you for the report. It is now fixed. Please try again to download the latest version via your subscriptions area (menu Your account>Your subscriptions) and install it via the joomla installer on your website in order to apply the fix.

The following user(s) said Thank You: solia

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

  • Posts: 30
  • Thank you received: 2
10 years 4 months ago #135826

Oui, le problème a été résolu. En moins de dix minutes.

This is the kind of support we can only dream about. Thank you for your nearly immediate fix Nicholas.

With kind regards, Nadine at Solia.

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

  • Posts: 64
  • Thank you received: 0
10 years 4 months ago #137724

I have the same problem with Hikashop 2.2.3.Problem is with Joomla 3 installation.When I access Entry Registration form in Joomla 3 I got 403 Error.The problem is in authorization of helper.php-

if(HIKASHOP_J30){
			if(!$this->authorize($task)){
				return JError::raiseError(403, JText::_('JLIB_APPLICATION_ERROR_ACCESS_FORBIDDEN'));
			}
		}
How can I solve this?

Thanks,

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
10 years 4 months ago #137727

Hi,

Please replace this block with :

		if(HIKASHOP_J30) {
			if(empty($task))
				$task = @$this->taskMap['__default'];
			if(!empty($task) && !$this->authorize($task))
				return JError::raiseError(403, JText::_('JLIB_APPLICATION_ERROR_ACCESS_FORBIDDEN'));
		}
It should solve your problem.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 64
  • Thank you received: 0
10 years 4 months ago #137737

Thanks,But it is not working.If I echo $task its value is form.
Also if I change $this->display = array(); to $this->display = array('form'); in entryController it works.
Is this correct or there is any solution?

Thanks,

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
10 years 4 months ago #137743

Hi,

Yes your patch looks good.
We will add this task in our side too, it will be include in the next release.

Thanks for the report.

Kind regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 392
  • Thank you received: 0
10 years 3 months ago #139017

Hi Jeome,

I am getting this error when I try to access the affiliate program via the control panel: 403 JLIB_APPLICATION_ERROR_ACCESS_FORBIDDEN

I have tried re-installing Hikashop to no avail.

Thanks :)

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
10 years 3 months ago #139141

Hi,

Change the line:
$this->display = array('clicks','leads','sales','cancel');

to:
$this->display = array('clicks','leads','sales','cancel','');

in components/com_hikashop/controllers/affiliate.php and that should fix the issue.

The following user(s) said Thank You: Bugger101

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

  • Posts: 392
  • Thank you received: 0
10 years 3 months ago #139275

Thanks Nicolas, worked perfectly :)

I am now getting an error underneath anywhere it shows the "display":

Display #
JLIB_HTML_RESULTS_OF

Thanks for your help :)

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

  • Posts: 13201
  • Thank you received: 2322
10 years 3 months ago #139427

Hi,

It seems that you have a missing Joomla translation key.
Thanks to check in the joomla language file if you have the following line:

JLIB_HTML_RESULTS_OF="Results %s - %s of %s"

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

  • Posts: 68
  • Thank you received: 6
10 years 3 months ago #140214

Xavier,

We also have the same problem with pagination.
As Joomla 3.2.1 and Hikashop 2.2.3 arrived within the same period we cannot track after which upgrade this issue appeared.

It seems the translation keys are there.

[/language]# grep -R JLIB_HTML_RESULTS_OF *
en-GB/en-GB.lib_joomla.ini:JLIB_HTML_RESULTS_OF="Results %s - %s of %s"
overrides/en-GB.override.ini:JLIB_HTML_RESULTS_OF="Results %s - %s of %s"

The overrides exists because I added it again, but it still does not work.
I did check that en-GB is the default language of the site. We have only that 1 language on the site.

Still we have the key appearing instead of the texts. Very strange, any idea what is wrong?

Last edit: 10 years 3 months ago by cbadmin.

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

  • Posts: 392
  • Thank you received: 0
10 years 3 months ago #140765

Hi there,

This problem still persists for me also. Any ideas?

Thanks :)

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
10 years 3 months ago #141075

Hi,

Can you please edit the file "administrator/components/com_hikashop/helper/helper.php" and replace

	function getPagination($max = 500, $limit = 100) {
		if(empty($this->pageInfo))
			return false;

		if($this->pageInfo->limit->value == $max)
			$this->pageInfo->limit->value = $limit;

		jimport('joomla.html.pagination');
		$pagination = new JPagination($this->pageInfo->elements->total, $this->pageInfo->limit->start, $this->pageInfo->limit->value);
By
	function getPagination($max = 500, $limit = 100) {
		if(empty($this->pageInfo))
			return false;

		if($this->pageInfo->limit->value == $max)
			$this->pageInfo->limit->value = $limit;

		if(HIKASHOP_J30) {
			$pagination = hikashop_get('helper.pagination', $this->pageInfo->elements->total, $this->pageInfo->limit->start, $this->pageInfo->limit->value);
		} else {
			jimport('joomla.html.pagination');
			$pagination = new JPagination($this->pageInfo->elements->total, $this->pageInfo->limit->start, $this->pageInfo->limit->value);
		}
I should improve the pagination for Joomla 3 and I hope, fix your problem.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 68
  • Thank you received: 6
10 years 3 months ago #141079

Just tried and unfortunately still have the keys appearing instead of the translations
JLIB_HTML_START
JLIB_HTML_END
JLIB_HTML_PAGE_CURRENT_OF_TOTAL
JLIB_HTML_RESULTS_OF


HK 2.2.3 / J 3.2.1

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
10 years 3 months ago #141292

Hi,

If the text is displayed like that and is not translated, it means that the language file is not loaded or another language is loaded.
Does this problem persist in all HikaShop page ? Does this problem is visible with other components ?
Do you have some special (system) plugins ? What are the languages installed/used in your backend ?
If you activate the language debug mode, what do you see for this pagination ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 4
  • Thank you received: 0
9 years 10 months ago #160461

Hello

I am now seeing this error, JLIB_HTML_RESULTS_OF, below the Display # on all pages that show the Display #.

I have read through this topic, www.hikashop.com/forum/install-update/86...to-2-2-3.html#141079 . I am only using one language, en-GB and the translation key exists in en-GB/en-GB.lib_joomla.ini:JLIB_HTML_RESULTS_OF="Results %s - %s of %s".

I treid replacing the code, as per your post in the above topic, this did not resolve my issue.

I don't have any special components or plugins installed.

With Language debug mode on, I see: ??JLIB_HTML_RESULTS_OF??

Regards

Neil

Last edit: 9 years 10 months ago by Neil.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #160898

Hi,

As Jerome asked, is this appearing only on the HikaShop pages or in any pages on your website ?
You language file is maybe corrupted at a place, and that's why you don't have the translations displayed.

Thanks to check your Joomla language file, and why not replace it by the last one, and check too the HikaShop language file, but I dont think that the HikaShop one is really related.

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

  • Posts: 4
  • Thank you received: 0
9 years 10 months ago #161006

Hello

It appears on all category pages in Hikashop, nowhere else.

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

  • Posts: 81590
  • Thank you received: 13079
  • MODERATOR
9 years 10 months ago #161040

Hi,

You should add the translation line in the override area of the translation file when you edit it via the Languages tab of the HikaShop configuration and that will definitely solve the problem.

The following user(s) said Thank You: activha

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

Time to create page: 0.161 seconds
Powered by Kunena Forum