I seem to have broken Hikashop!

  • Posts: 8
  • Thank you received: 0
11 years 6 months ago #101572

Hi,

I have a problem with Hikashop that I cant fix. When I edit a PHP in views or try to modify the language file I get a whole lot of \ appearing. They appear in product files after apostrophes and in PHP before quote marks. Every time I save I get more. I then have to reload my en-GB file. The only way I can edit files is by copying them out to an external editor and then uploading them again..

Obviously I cant do that every time I load a product!

I have one live example on my website - thebooktrader.co.nz/index.php/thriller/category/78-shaun-hutson if you want to have a look.

Can you help?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #101597

Hi,

I'll need more informations like what hikashop's files did you changed and can you :
- Active the joomla debug mode ("Administration->Global configuration->System->Debug System/Language")
- Set the "error reporting" option of the joomla configuration to "maximum"
- Try it again and tell me if it display an error message.

Last edit: 11 years 6 months ago by Mohamed Thelji.
The following user(s) said Thank You: kerryb

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

  • Posts: 8
  • Thank you received: 0
11 years 6 months ago #101732

did that and edited the file thebooktrader.co.nz/index.php/thriller/category/78-shaun-hutson
and took out all the \ and pasted a clean copy back in.

It worked same as before:
-I have \ before every apostrophe and quote.
- no error message
- just said "successfully saved"

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

  • Posts: 8
  • Thank you received: 0
11 years 6 months ago #101742

Hi ,
the things I have changed are:
- checkout_terms.php
- product_listing_img_title.php
- product_listing_title.php
- English language was modified also

The problem started after I had modified the English language file which I did through frontend (system / configuration / languages change icon.)
after I had modified it I got a msg that said my language file was out of date and I needed to download the latest file from the server. There was a link to download beside the message and so I clicked on it and the download seemed to happen. But the download showed \ beside every quotation mark in the language file and the website was riddled with them everywhere. I went to the over ride file and found it filled with forward slash marks. I deleted the contents of the over ride file but it kept getting worse. I ended up reloading my en.gb directory via ftp. this fixed the major problem but it keeps reoccurring in articles with apostrophes as you can see.

I hope this helps

Cheers

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 6 months ago #101796

Hi,

This is because you're using Joomla 3.0 and that you have the magic quotes option of PHP activated.
Joomla 3.0 is not compatible with it. Please turn off the magic quotes option of your PHP and it should then not add the backslashes when you save a file.

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

  • Posts: 8
  • Thank you received: 0
11 years 6 months ago #101880

Hi Nicholas,
thanks for that. I cannot find out how to turn off the magic quotes option.

Do I have to create a php.ini file to do this or is there a file somewhere I need to edit.

Cheers

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #101938

Hi,

I think that you'll find your answer there regarding your magic quotes problem.

Last edit: 11 years 6 months ago by Mohamed Thelji.
The following user(s) said Thank You: kerryb

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

Time to create page: 0.073 seconds
Powered by Kunena Forum