Jump to content

[Solved] tb_pathToImage is not defined Some product pages missing


Recommended Posts

I'm having a problem

when i click on Parent Category>>Product or Parent Category>>Subcategory>>Product once and awhile I get a blank product page with the Left hand column blocks missing. I used firebug and I see this error "tb_pathToImage is not defined". It's connected to the "thickbox" somehow. Can someone tell me how to fix it?

I don't know how this happened.

If someone can give me a reply as soon as possible, that would be really cool.

Thanks

************UPDATE**************
Products Category v1.2.1 was the cause of the error. This module overall has slowed down my query calls. very buggy. From what I saw the "random" function has been causing havok on the db. Anyway, as soon as I disabled it everything has shown up.

Link to comment
Share on other sites

I thought i was solved, but apparently not. There is definitely a problem with thickbox-modified.js and thickbox.css. Parsing errors.

When I click on my Main Category then I click into one of the products, then there is only the left blocks that show. Everything else is gone. This only happens when I call it from the Main category only not the subcategories.


So Main Category >>Product>> Empty page. with the errors

Webpage error details

Message: 'tb_pathToImage' is undefined
Line: 14
Char: 231
Code: 0
URI: http://fougy.com/store/js/jquery/thickbox-modified.js

I thought it was solved yesterday, but there is definately some parsing errors happening here.

thanx

Link to comment
Share on other sites

yes.. well i fixed it.. *look at first post* I forgot to add "UPDATE". I removed productcategory module and the error was gone. I think there is some javascript conflict going on. When you visited my page, I already removed it. All good now!

Thank you rocky for your effort!

Link to comment
Share on other sites

  • 6 months later...

I have the same error on some of my products.
and strange enough deleting the productcategory module did the trick.
only I found this so usefull.

any idea guys what can cause this problem?
and yes it happens only when you do this :
start at your home page
click on one category
then you get in the middle products.
click on it and you get the errors.

when you do this:
click on the first category
then choose a category under this category (level 2) where the same product can be found, then just click the product no problem at ???
it seems the problem is in the fact you start from the first level category that is showing all products in this category.

regards
Deech

Link to comment
Share on other sites

  • 1 month later...

Hello,

I also have this problem:

Message: ‘tb_pathToImage’ is undefined
Line: 14
Char: 231
Code: 0
URI: http://.............../js/jquery/thickbox-modified.js



However, how can you fix it??
I dont understand the actual process you done.
Please suggest, thank you.

Link to comment
Share on other sites

  • 1 month later...

Hi,

just remove following lines in your header.php

$css_files[__PS_BASE_URI__.'css/thickbox.css'] ='screen';
$js_files[] = __PS_BASE_URI__.'js/jquery/thickbox-modified.js';



You dont need the thickbox on all webpages, only on your productpage.

Greetings

Link to comment
Share on other sites

  • 3 weeks later...
I have this same issue, however if I edit HEADER.PHP I do not see any references to THICKBOX.

HELP!

The site has been functional for the past year. This issue first occured today. Most of my product detail pages have this error.

This is a link to my site. http://www.hhof.com:9880/cyberstore

Thank you


***** UPDATE 10-Feb-2011*****

hello all,

IT WORKS!

as described in the first post on this page, I also de-activated the Product category module and it solved my issue.


Thank you et a bientot!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...