[SOLVED] Images for custom field not displayed on

  • Posts: 33
  • Thank you received: 0
10 years 7 months ago #187285

-- url of the page with the problem -- : www.glazweb.com/vente-en-ligne-viande-bovine/produit/pot-au-feu
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.1.1
-- PHP version -- : 5.5.9
-- Browser(s) name and version -- : Firefox 35.0

Hello.
I've created custom fields for my products. One of them is an image (screenshot 1)
The image is displayed on back-office, on a product page (screenshot 2)
But the image is not displayed on frontside, but only the name of the image (screenshot 3)
Firebug says Error 500. I just can't understand this message because the image is displayed on back-office.

Any help would be very appreciated.
Thank you. Best regards

Attachments:
Last edit: 10 years 7 months ago by glazweb.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 7 months ago #187348

Hi,

Could you please check your PHP error log in order to know more about the 500 error you got ?
The "downloadFieldFile" function of the HikaShop file class check the asked file.
During these checks, it reads the custom field configuration in order to authorize the download of the default value ; so it should authorize the download of the file.
Because you got a 500 error, I think that there is a PHP fatal error ; knowing this error will help us to fix the issue.

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: 33
  • Thank you received: 0
10 years 7 months ago #187420

Hello, and thank you for your help.

Here are the two error lines in error log file :
PHP Notice: Undefined property: hikashopFileClass::$db in /.../administrator/components/com_hikashop/classes/file.php on line 619
PHP Fatal error: Call to a member function quoteName() on a non-object in /.../administrator/components/com_hikashop/classes/file.php on line 619
A thing I don't understand is that this website is a dev version. The one in production works fine. I made a copy to change the template (official JoomlaMonster "Modern Store" with Hika inside). I upgraded the Hika component to Business version (2.3.5) with my licence.
I also upgraded Joomla to 3.3.6 yesterday but no change.

A new point is an encoding error when I display a product page. Error Message in Firefox is "La page que vous essayez de voir ne peut être affichée car elle utilise un type de compression invalide ou non pris en charge."
And error log is :
PHP Notice: Trying to get property of non-object in /.../templates/jm-modern-hika-store/html/com_hikashop/product/listing_img_title.php on line 24
This problem occures only on product page.
I tried the two cache systems, but there is no change about this encode error. The display works only if I disable cache system (native plugin).

Hope this information can help you to point out the problem(s).

Best regards.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 7 months ago #187458

Hi,

Please replace in the line 619 for your "classes/file.php" file the "$this->db" into "$this->database".
You can also re-download HikaShop 2.3.5 ; I do not have any "db" in my side so I think that the issue has been already solved in the forum.

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.
The following user(s) said Thank You: glazweb

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

  • Posts: 33
  • Thank you received: 0
10 years 7 months ago #187533

All right !
Problem of images not displayed is solved, thank to you. I re-upload Hika 2.3.5 and it works fine.
But still have problem with this encode error.
Is there somewhere in Hika a parameter to fix encoding ? When I enable the native cache of J! in configuration+plugin, each page of the website is displayed properly, except product page. And no output message in Firebug.
Curiously, after the browser error message, it works when I reload the page.

Anyway, thanks a lot for solving the image problem ! And long live to Hika.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 7 months ago #187536

Hi,

HikaShop, as a e-commerce solution, is not compatible with the Joomla cache system.
The cache will store complete page, including the cart details so ; it generally broke how the store react.

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: 33
  • Thank you received: 0
10 years 7 months ago #187614

Of course !
Sorry about the question. And thanks again for the help and solution.

Best regards

Sorry, but how to mark this 'solved' ?

Last edit: 10 years 7 months ago by glazweb.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #187624

Hi,

You have to edit the subject of your first post.

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

Time to create page: 0.057 seconds
Powered by Kunena Forum