Error accessing administrator part of the site

  • Posts: 10
  • Thank you received: 0
11 years 7 months ago #97803

Hi

Having tried to upgrade Hikashop from 1.5.8 to 2.1.1, I tried to install the tar.gz file using the Joomla install utility. It came up with an Internal server 500 error.

I have found a way of extracting the tar.gz hikashop upgrade folder and uploading the files to the home/tmp location on my site.

However, when I went back to login to the administrator area of Joomla again, I receive the following error:

"Parse error: syntax error, unexpected '=', expecting '(' in /homepages/1/d292807604/htdocs/administrator/components/com_hikashop/helpers/helper.php on line 1459"


Do you have any ideas how I could resolve this? Looks to be a problem in that particular file which I can locate easily enough, but I have no idea what in the file needs fixing.

Thank you

Dave

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

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #97839

Hi Dave,
Can you reinstall again your Hikashop with a new installation package ?

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

  • Posts: 10
  • Thank you received: 0
11 years 6 months ago #98294

Hi Mohamed.

Thanks for the response. I can't access the administrator control panel part of the site, so am not sure how to reinstall hikashop.

I can access the file structure of my site though if that helps.

Thanks, Dave

Last edit: 11 years 6 months ago by historyman73. Reason: Missed information.

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #98298

rename the folder administrator/components/com_hikashop via FTP and install again.

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

  • Posts: 10
  • Thank you received: 0
11 years 6 months ago #98853

Thanks Nicolas.

I can now access the administrator area and see my Joomla control panel. I've downloaded the Hikashop Starter zip file and gone into the Install Extensions menu. I then chose to upload and install the zip file but my browser refreshed to show the following area message: -

Parse error: syntax error, unexpected '=', expecting '(' in /homepages/1/d292807604/htdocs/administrator/components/com_hikashop/helpers/helper.php on line 1460

This appears on the administrator/index.php page.

Thanks, Dave

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #98868

It seems that the package or the upload process has an issue on your website.

Rename again that folder.
Download again the install package on our website and do an install via FTP as explained on the documentation and that should help:
www.hikashop.com/en/support/documentatio...-to-install.html#ftp

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

  • Posts: 10
  • Thank you received: 0
11 years 6 months ago #98999

My install directory defaults to '/homepages/1/d292807604/htdocs/home/tmp'.

I've tried uploading an extracted hikashop folder to the home\tmp location on my site but it can't find the folder I've uploaded.

I've also tried uploading a zip file to the install from URL field in the format www.example.com/home/tmp folder but get the error message above again.

It only appears to have a problem with a line in the helpers.php file - it is possible to just change this perhaps?

Thanks.

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #99057

You can try. but that doesn't means it will work. That will indeed fix that error, but another one might be there...
You can copy the files of the folder back of the install package to the administrator/components/com_hikashop folder and the files of the folder front to the components/com_hikashop folder via FTP and that should already help a lot.

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

  • Posts: 10
  • Thank you received: 0
11 years 6 months ago #99829

Thanks Nicolas but not sure I understand.

I currently have a com_hikashop folder within administrator/components. This contains subfolders such as buttons, classes, controllers, extensions, falang, helpers, inc, translations, types and views with 6 other files.

I then have a com_hikashop folder at the highest level on the site (e.g. www.example.com/com_hikashop . This contains folders controllers, fields, params and views with 4 other files.

If I navigate to example.com/administrator/ I can see the login screen but on login, I see the following error message:

Parse error: syntax error, unexpected '=', expecting '(' in /homepages/1/d292807604/htdocs/administrator/components/com_hikashop/helpers/helper.php on line 1460


If I then navigate to www.example.com , I see the following error message:

Parse error: syntax error, unexpected '=', expecting '(' in /homepages/1/d292807604/htdocs/administrator/components/com_hikashop/helpers/helper.php on line 1460



Could you please just explain your last note? Understand how to copy the extracted folders / files from the install zip file to the administrator/components location. However, what am I copying to the components folder?

Thanks - really keen to get this resolved.

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #99850

As I said in my previous message, you need to copy the files of the "back" folder of the package in administrator/components/com_hikashop and the files of the "front" folder of the package in components/com_hikashop

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

  • Posts: 10
  • Thank you received: 0
11 years 6 months ago #101700

Thanks - is it just the files, or the folders as well?

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

  • Posts: 10
  • Thank you received: 0
11 years 6 months ago #101701

Hi

I've copied the folders and files from the "back" folder of the install package to the administrator/components/com_hikashop folder on the site.

I then copied the folders and files from the "front" folder of the install package to the components/com_hikashop folder on the site.

I still get the same error when I login to the administrator page of my site:

"Parse error: syntax error, unexpected '=', expecting '(' in /homepages/1/d292807604/htdocs/administrator/components/com_hikashop/helpers/helper.php on line 1460".


If I then "remove" the com_hikashop folder from the administrator/components folder of the site, I can now login to the Joomla admin control panel.

However, if I then navigate to the home page of my site, I see an error message:

"Fatal error: Call to undefined function: str_ireplace() in /homepages/1/d292807604/htdocs/index.php on line 91".


If it helps, I am on the following versions:

Joomla 1.5.26
PHP version 4.49

Thanks, Dave

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #101703

Hi,

I think that the problem is your PHP version.
We do not support PHP 4 anymore since several months.

You should update your PHP. PHP4 critical support itself has ended already 5 years ago and thus it's been a long time now and most PHP applications stopped their support for PHP4.

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

  • Posts: 10
  • Thank you received: 0
11 years 6 months ago #101712

Yes, that was what the problem was - thanks Nicolas!

Dave

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

Time to create page: 0.085 seconds
Powered by Kunena Forum