error when changing the listing_img_title.php file

  • Posts: 20
  • Thank you received: 4
11 years 6 months ago #108425

hi guys,


im finding this issue really very frustrating. Im trying to edit the listing_img_title.php file by going to hikashop > views > listing_img_title (product) however i keep getting this error:


Parse error: syntax error, unexpected T_NS_SEPARATOR, expecting T_STRING in /home/mysite/public_html/templates/mytemplate/html/com_hikashop/product/listing_img_title.php on line 9

i can see that it is putting a new folder structure into my template folder and not updating the correct listing_img_title.php file, see below:

html > com_hikashop > product > listing_img_title.php - (this is created in my template folder when i hit the 'save' button in joomla)


how do i fix this issue? i had my page running on a different server ages ago and i never had this problem. what am i doing wrong?


:(

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #108460

Hi,

The folder structure is correct, the file is at the good place.
Can you try to save your changes in an external file, then via the menu Display > Views delete the custom view by clicking on the dustbin, and see if the error appear again.

Then edit the file, and past the previous content but corrected.

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

  • Posts: 20
  • Thank you received: 4
11 years 6 months ago #108477

Hi Xavier,

thank you for your reply.

i have tried what you suggested.

i made a copy of listing_img_title.php

i deleted custom code which removed the error

i pasted back the code and hit the save button, however i still have the error.

one thing i did notice though, was when i hit the save button, i ended up getting '\' all over the code. the more i hit the save button the more '\\\' i get. see below snippet:

<?php
/**
 * @package  HikaShop for Joomla!
 * @version  2.1.3
 * @author  hikashop.com
 * @copyright  (C) 2010-2013 HIKARI SOFTWARE. All rights reserved.
 * @license  GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined(\\\\\\\\\\\\\\\'_JEXEC\\\\\\\\\\\\\\\') or die(\\\\\\\\\\\\\\\'Restricted access\\\\\\\\\\\\\\\');
?><?php
$link = hikashop_completeLink(\\\\\\\\\\\\\\\'product&task=show&cid=\\\\\\\\\\\\\\\'.$this->row->product_id.\\\\\\\\\\\\\\\'&name=\\\\\\\\\\\\\\\'.$this->row->alias.$this->itemid.$this->category_pathway);

if(!empty($this->row->extraData->top)) { echo implode(\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\r\\\\\\\\\\\\\\\\n\\\\\\\\\\\\\\\",$this->row->extraData->top); }

if($this->config->get(\\\\\\\\\\\\\\\'thumbnail\\\\\\\\\\\\\\\',1)){ ?>


what would be causing this?

Last edit: 11 years 6 months ago by flashx.

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

  • Posts: 20
  • Thank you received: 4
11 years 6 months ago #108483

OMG! after weeks of pulling my hair out, i think ive solved the "\\\" problem!!

for those of you wondering, i created a text document called php.ini

i then added this code which removed magic quotes:

magic_quotes_gpc = Off

through ftp, i uploaded this to both the pubic_html file and the public_html > administrator file


NO MORE BLASTED BACKSLASHES!!!! :) :P :P :P

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

Time to create page: 0.070 seconds
Powered by Kunena Forum