Support Forums


Go Back   68 Classifieds Forums > Archives > Legacy Help & Support > v3.1 Questions & Support

 
LinkBack Thread Tools Display Modes
Old 05-09-2006, 08:28 AM   #1
Member
 
zman78's Avatar
 
Join Date: Mar 2006
Posts: 75
Rep Power: 15
zman78 is on a distinguished road
Default Thumbnails in ads give popup window w/ error

VERSION 3.1.0

The Popup window wont display a larger image but reads this when i click thumbnails in ads:

"Notice: Query failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 SQL: SELECT id,pid,title,image FROM class_prodimages WHERE id > 0 AND pid = in /home2/zach3/jamestownclassifieds-www/new/includes/classes/database/mysql.php on line 119

Notice: Query failed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 SQL: SELECT id,pid,title,image FROM class_prodimages WHERE id < 0 AND pid = in /home2/zach3/jamestownclassifieds-www/new/includes/classes/database/mysql.php on line 119"

ANY HELP?

Zack
__________________
Zack

3.1 designer
zman78 is offline   Reply With Quote
Old 05-09-2006, 09:05 AM   #2
Coder
 
Join Date: Mar 2006
Posts: 4,562
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

I beleive the viewlisting.tpl.php file changed from 3.0.x to 3.1 so if you recently upgreaded but are using the 3.0.x template that may be causing your error. Goto admin and just select a different template to see if the problem goes away. If you havent modified the viewlisting.tpl.php file you should just be able to upload the new one to your template directory.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 05-09-2006, 10:27 AM   #3
Member
 
zman78's Avatar
 
Join Date: Mar 2006
Posts: 75
Rep Power: 15
zman78 is on a distinguished road
Default

Thanks! Eric was the man and helped me out. He actually did it FOR me! Another example of how great these guys are!

Zack
__________________
Zack

3.1 designer
zman78 is offline   Reply With Quote
Old 05-09-2006, 07:14 PM   #4
Senior Member
 
garysmith's Avatar
 
Join Date: Mar 2006
Location: Jackson, Mississippi
Posts: 130
Rep Power: 16
garysmith is on a distinguished road
Default

Larry I did not see this post and opened a similar post. Would you please show just a tad bit more detail about this fix? I am having the same issue.

gsmith
__________________
As a Man Think-ith, So is He.
www.zFreeAds.com
www.ms-fsbo.com
garysmith is offline   Reply With Quote
Old 05-09-2006, 07:46 PM   #5
Coder
 
Join Date: Mar 2006
Posts: 4,562
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

If im not mistaken the contents of some of the templates changed. What that means is if you are running a template from a version 3.0.1x that you have modified with version 3.1 it can cause some problems.

If you have a customized template your using, log into the admin side of your site and goto main settings, then select one of the other templates that came with V3.1 and see if you have the same problem. You may need to clear templates_c just to make sure.

If the problem goes away, copy the file viewlisting.tpl.php from your default template folder that came with V3.1 and place it in your custom template that you want to use. Then go ahead and change your template back in admin->main settings and I beleive that will fix your problem.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 05-09-2006, 08:42 PM   #6
Senior Member
 
garysmith's Avatar
 
Join Date: Mar 2006
Location: Jackson, Mississippi
Posts: 130
Rep Power: 16
garysmith is on a distinguished road
Default

Hummm?

Copied different viewlisting file into my custom template and am getting the same error?

Any other ideas?

See it here:
http://ms-fsbo.com/viewlisting.php?view=3

Something else...i have 4 photos there to show and the pop-up is only picking up 3 of the images. (I tried all of the "out of the box" templates and got the same response)?

Quote:
If you have a customized template your using, log into the admin side of your site and goto main settings, then select one of the other templates that came with V3.1 and see if you have the same problem. You may need to clear templates_c just to make sure.
What does this mean please? Clear? Erase all the data in that file?

gsmith
__________________
As a Man Think-ith, So is He.
www.zFreeAds.com
www.ms-fsbo.com

Last edited by garysmith; 05-09-2006 at 08:57 PM.
garysmith is offline   Reply With Quote
Old 05-09-2006, 09:56 PM   #7
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,217
Rep Power: 61
juven14 is a jewel in the rough
Default

Looks like you are using viewlisting2.tpl.php, please make sure that is the file you are replacing.
__________________
John Snyder
PHP Developer
juven14 is offline   Reply With Quote
Old 05-09-2006, 10:14 PM   #8
Senior Member
 
garysmith's Avatar
 
Join Date: Mar 2006
Location: Jackson, Mississippi
Posts: 130
Rep Power: 16
garysmith is on a distinguished road
Default

Yes...I was very careful not to edit viewlisting2...

gsmith
__________________
As a Man Think-ith, So is He.
www.zFreeAds.com
www.ms-fsbo.com
garysmith is offline   Reply With Quote
Old 05-09-2006, 10:23 PM   #9
Coder
 
Join Date: Mar 2006
Posts: 4,562
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by garysmith
Yes...I was very careful not to edit viewlisting2...

gsmith
What John meant was not only do you need to copy over viewlisting.tpl.php but since you are using viewlisting2.tpl.php copy that file over from 3.1 default template as well.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 05-09-2006, 10:33 PM   #10
Senior Member
 
garysmith's Avatar
 
Join Date: Mar 2006
Location: Jackson, Mississippi
Posts: 130
Rep Power: 16
garysmith is on a distinguished road
Default

Hummm? ok i copied each one from 3.1 to my template...

See: http://ms-fsbo.com/viewlisting.php?view=3

It snaps the image popup to very small and the viewlisting images of printer,etc. are not locating?

gsmith
__________________
As a Man Think-ith, So is He.
www.zFreeAds.com
www.ms-fsbo.com
garysmith is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Question regarding listing image popup sizing civ v3.1 Questions & Support 5 10-12-2006 05:47 AM
Size of photo popup window Chad v3.1 Questions & Support 2 10-09-2006 12:26 PM
Where can I resize the popup window? sedonagate v3.1 Questions & Support 4 09-18-2006 01:27 PM
Change text on popup error message sedonagate v3.1 Questions & Support 3 09-06-2006 03:56 PM
Error in WinInet: Not a valid URL frommarcq v3.1 Questions & Support 0 07-20-2006 04:35 AM


All times are GMT -4. The time now is 03:15 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0