![]() |
showproduct.php not working Classifieds v2.1 vB3 Enhanced showproduct.php doesn't seem to be working - the navbar displays and that's it. Clicking on the yellow error icon in the foot of the browser shows: Line: 396 Char: 1 Error: Object expected Code: 0 URL: /classifieds/showproduct.php?product=1 Here's line 396 from showproduct.php: $query = "UPDATE {$Globals['pp_db_prefix']}users SET views=views+1 WHERE userid={$User['userid']}"; |
Actually, thats an html error, not a script error. Check your quickcom.tmpl file and see if var threadedmode = 1; is set. |
No occurences of 'threadedmode' in /templates/quickcom.tmpl so no it's not set. What command syntax should I use and where in the file should it be inserted? |
Well, since I don't have a URL to your page, I'm just guessing. View Source for the page and look at line 396 of the html code and it'll give you some more info. |
Line 396 was copied in to my first post. I don't know what I'm looking for so if you could please take a look and advise me it would be most appreciated: http://scene-out.com/search/showproduct.php?product=1 |
Can anyone offer any guidance here? |
Just an FYI: The page for the link you provided doesn't come up. More than 3 minutes now and no error icon, nothing........status bar says "Waiting for scene-out.com..." Your homepage does come up though. |
Ever since I upgrade to PHP 4.3.10 that happens from time to time. ALmost as if the site gets busy or something and grinds to a halt. Maybe my php.ini could do with some fine tuning. My site's working again now. |
Can anyone offer any guidance here? At the moment this application isn't working as I can't use showproduct.php |
Yep, your site came up this time. The error doesn't show at all in Mozilla but it does show the error icon in IE. I had a similar problem with my site and it was in the header.htm. Mozilla had no problem with document.onmousedown=right; but IE had to have document.onmousedown="right"; I would check the code in the header.htm and footer.htm first. FYI: Line 396 in your html is: <body onload="editInit();"> editInit(); is the object expected. |
Just as izan posted, in your body tag you are calling a javascript function that isn't present. |
I don't know what I'm looking for - don't have this problem with the rest of my site only on Classifieds showproduct.php. In the config-int.php the following three settings were previously 'on' - now changed to be as follows: define(VB3_INTEGRATION, 'on'); define(VB3_ENHANCEDINT, 'off'); define(VB3_COMMWYSIWYG, 'off'); Now Classifieds showproduct.php doesn't show the yellow warning sign... but still the showproduct.php page isn't being shown. Turning VB3 intergration off results in a totally blank page. |
that would indicate a parse error on php file upload clean files that your altered. |
Only files I remember altering are the confdig files. Copying all of .php files from the download onto my server makes no difference at all. |
did you alter template or language files? |
I can't remember if I edited any of the files - installed it a few weeks ago and left it as I had other things that suddenly took priority. I did create an additional template. Would it be safe to delete everything in my classifieds directory, put fresh classifieds files in it's place and edit the config files. If logic serves me right this should be ok with no need to run install because the databse is already there. |
if your using an alternate template set make sure you have a template that it is looking for as in showproduct4.tmpl etc |
Well, I have not touched any templates yet... it's a fresh install, I posted a test ad and I also have that javascript error here Error: editInit is not defined Also, where does the ad title appears? |
Make sure if your using VB3 enhanced integration the templates from the vb3enhanced directory are copied to the main templates directory |
Quote:
never mind I removed the {$Globals['vbulletin']}/ in front of collapsetcat.gif and that was fixed. Strange enough, the other ones needed that. |
| All times are GMT -5. The time now is 05:25 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0