Our Sponsors



Live Tutorials
PHP, Photoshop, flash, illustrator tutorials.
www.live-tutorials.com

PHP Nuke Services
Need work done on your site? View our services for the best in phpnuke services.
www.westernstudios.net

Theme Shop
Get the best in phpnuke themes, stock photos, icons from Western Studios themes shop.
shop.westernstudios.net

PHP Nuke Downloads
The latest and best in php nuke downloads.
www.westernstudios.net

Your Ads Here
Advertise with Western Studios.
www.westernstudios.net




Western Studios :: View topic - Enchanted_Poetry Questions and error
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups     ProfileProfile   Log inLog in 


Enchanted_Poetry Questions and error


Goto page 1, 2  Next
 
Post new topic   Reply to topicprinter friendly version    Western Studios Forum Index -> Hack and Mods
Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 17
Next Group: 33 posts
Xirian wrote:

I hope that someone here can help me out with this mod I added to my site. I tried to go straight to the source, but they have issues with their own SQL that won't allow me to register at their site.

I will try to be as detailed as possible in my question, but if you need more information in order to assist me, please let me know.

I installed the mod both recommended ways in the install file. They both worked and I was able to add poetry and everything seems to be working fine except in the admin area.

When I go to validate a poem that has been submitted, I get the errors, but the poems do get validated and everyone who is a registered member can read them.

I submitted 5 poems today and this is what I see everytime I go to the Admin panel and click on the poetry icon:

Quote:
Current Poems (click on names to EDIT)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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


I'm not exactly sure what the problem is or exactly where to look for the problem to fix it. I know it has something to do with MySql, but when I went there and looked at things there, I didn't know what exactly I should do after that.

I run a phpnuke 7.8 website.

I installed the Enchanted_Poetry module which you can find:
Enchanted Poetry for php-nuke 7.4 and above

Any assistance from anyone here would be extremely appreciated!!!

Posted: Tue May 15, 2007 5:08 pm

Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3308
Staff
Next Group: 1692 posts
admin(Mark) wrote:

hi, do you get the errors before or after the you click to validate the poems? I have a copy of the module now and I am taking a look at the codes.

Posted: Tue May 15, 2007 5:54 pm

Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 17
Next Group: 33 posts
Xirian wrote:

admin wrote:
hi, do you get the errors before or after the you click to validate the poems? I have a copy of the module now and I am taking a look at the codes.


Hello, I get the error after I hit the validation key. Also, I've found another similar error when I'm in the admin panel and I click on "View Categories" and then click on "Page 2" since I have three pages of categories.

The error I receive when I click on "Page 2" or "Page 3" is the following:

Quote:

Current Categories
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 '-15, 15' at line 1
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 '-15, 15' at line 1


However, if I just click on "Next" and not the page numbers, I don't get the error at all.

I hope this answers your question. Please let me know if you need more information and I thank you so much for responding so quickly!!!

Posted: Tue May 15, 2007 6:23 pm

Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3308
Staff
Next Group: 1692 posts
admin(Mark) wrote:

try this for the validating section and let me know if you still get the error.

open admin/modules/poetry.php and on about line 212 find the following:

Code:
$limit = " ASC LIMIT ".$min.", ".$max;


Just above that add the following:

Code:
if($min < 0){ $min = 0; }


Save and do a test validate.

Posted: Tue May 15, 2007 6:54 pm

Western Studios

WS Newbie
WS Newbie
~PHP Nuke User~


Posts: 17
Next Group: 33 posts
Xirian wrote:

Hello again,

I did as you suggested and I got the same error.

Quote:

Current Poems (click on names to EDIT)
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
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
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


Sadly, I'm sure it's something extremely simple, but I just don't know what it is. I hope something can be figured out and I appreciate you taking the time to help me with this tonight.

Posted: Tue May 15, 2007 7:18 pm

Post new topic   Reply to topic    Western Studios Forum Index -> PHP Nuke -> Hack and Mods All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts What is this site missing? 5 admin 1645 Sat Aug 30, 2008 2:31 am
strik9 View latest post
No new posts Version Information 4 Guest 702 Sat Jun 18, 2005 11:49 pm
Guest View latest post
No new posts New site design 4 admin 1299 Tue Apr 13, 2004 10:18 am
admin View latest post
This topic is locked: you cannot edit posts or make replies. Site logo 3 Greener 1664 Wed Feb 25, 2004 11:48 am
admin View latest post
 
Forums ©