PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Installation & Upgrades (http://www.photopost.com/forum/classifieds-installation-upgrades/)
-   -   showproduct.php not working (http://www.photopost.com/forum/classifieds-installation-upgrades/111850-showproduct-php-not-working.html)

criscokid January 31st, 2005 08:24 AM

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']}";

Michael P January 31st, 2005 09:51 AM

Actually, thats an html error, not a script error.

Check your quickcom.tmpl file and see if var threadedmode = 1; is set.

criscokid January 31st, 2005 10:22 AM

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?

Michael P January 31st, 2005 02:27 PM

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.

criscokid January 31st, 2005 05:12 PM

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

criscokid February 1st, 2005 10:47 AM

Can anyone offer any guidance here?

izan February 1st, 2005 02:18 PM

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.

criscokid February 1st, 2005 02:25 PM

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.

criscokid February 1st, 2005 07:11 PM

Can anyone offer any guidance here? At the moment this application isn't working as I can't use showproduct.php

izan February 1st, 2005 09:27 PM

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.

sifuhall February 1st, 2005 09:31 PM

Just as izan posted, in your body tag you are calling a javascript function that isn't present.

criscokid February 2nd, 2005 02:46 AM

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.

Chuck S February 2nd, 2005 10:38 AM

that would indicate a parse error on php file

upload clean files that your altered.

criscokid February 2nd, 2005 12:34 PM

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.

Chuck S February 2nd, 2005 12:36 PM

did you alter template or language files?

criscokid February 2nd, 2005 01:41 PM

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.

Chuck S February 2nd, 2005 02:12 PM

if your using an alternate template set make sure you have a template that it is looking for as in showproduct4.tmpl etc

Lionel March 26th, 2005 03:42 PM

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?

Chuck S March 26th, 2005 04:59 PM

Make sure if your using VB3 enhanced integration the templates from the vb3enhanced directory are copied to the main templates directory

Lionel March 26th, 2005 05:13 PM

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.


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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97