 | |  | | | Classifieds Installation & Upgrades If you're having install or upgrade problems, post here. |
January 31st, 2005, 08:24 AM
|
#1 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
| 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']}";
|
| |
January 31st, 2005, 09:51 AM
|
#2 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
Actually, thats an html error, not a script error.
Check your quickcom.tmpl file and see if var threadedmode = 1; is set.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
January 31st, 2005, 10:22 AM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
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?
|
| |
January 31st, 2005, 02:27 PM
|
#4 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,834
|
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.
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
January 31st, 2005, 05:12 PM
|
#5 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
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 |
| |
February 1st, 2005, 10:47 AM
|
#6 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
Can anyone offer any guidance here?
|
| |
February 1st, 2005, 02:18 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Oct 2004
Posts: 42
|
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.
|
| |
February 1st, 2005, 02:25 PM
|
#8 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
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.
|
| |
February 1st, 2005, 07:11 PM
|
#9 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
Can anyone offer any guidance here? At the moment this application isn't working as I can't use showproduct.php
|
| |
February 1st, 2005, 09:27 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Oct 2004
Posts: 42
|
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.
|
| |
February 1st, 2005, 09:31 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Jul 2003
Posts: 81
|
Just as izan posted, in your body tag you are calling a javascript function that isn't present.
|
| |
February 2nd, 2005, 02:46 AM
|
#12 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
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.
|
| |
February 2nd, 2005, 10:38 AM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
that would indicate a parse error on php file
upload clean files that your altered.
|
| |
February 2nd, 2005, 12:34 PM
|
#14 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
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.
|
| |
February 2nd, 2005, 12:36 PM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
did you alter template or language files?
|
| |
February 2nd, 2005, 01:41 PM
|
#16 (permalink)
| | Senior Member Verified Customer
Join Date: Jun 2003 Location: London, UK
Posts: 562
|
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.
|
| |
February 2nd, 2005, 02:12 PM
|
#17 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
if your using an alternate template set make sure you have a template that it is looking for as in showproduct4.tmpl etc
|
| |
March 26th, 2005, 03:42 PM
|
#18 (permalink)
| | Registered User
Join Date: Mar 2002
Posts: 176
|
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?
|
| |
March 26th, 2005, 04:59 PM
|
#19 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,694
|
Make sure if your using VB3 enhanced integration the templates from the vb3enhanced directory are copied to the main templates directory
|
| |
March 26th, 2005, 05:13 PM
|
#20 (permalink)
| | Registered User
Join Date: Mar 2002
Posts: 176
| Quote: |
Originally Posted by omegatron Make sure if your using VB3 enhanced integration the templates from the vb3enhanced directory are copied to the main templates directory | That solved the problem, but created another one. Some images are broken. Is there an easy way to fix, or I must hardcode individually? example
never mind I removed the {$Globals['vbulletin']}/ in front of collapsetcat.gif and that was fixed. Strange enough, the other ones needed that.
Last edited by Lionel; March 26th, 2005 at 05:27 PM.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 02:42 PM. | |