Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
dssripper
Regular
Regular



Joined: Feb 16, 2004
Posts: 69

PostPosted: Mon Oct 18, 2004 7:42 am Reply with quote

It says that the link was added. But when I go to the web link
administration it shows 0 links. This is PHP-Nuke Platinum v.6.9.1
Any suggestions?


Thanks!

Dss
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Oct 18, 2004 8:43 am Reply with quote

I don't use it and am unfamiliar with it. If it is set up the same, edit sql_layer.php and set $sql_debug to 1 and see if it shows an sql error when you try to add the link.
 
View user's profile Send private message
dssripper







PostPosted: Mon Oct 18, 2004 8:59 am Reply with quote

Thanks for your help as usual Raven.
Here is what i get

SQL query: select radminlink, radminsuper from nuke_authors where aid='larry'
SQL query: select url from nuke_links_links where url='http://www.links.com'
SQL query: insert into nuke_links_links values (NULL, '1', '0', 'test', '', 'http://www.links.com', 'test', now(), 'test', 'larry@links.com', '0', '', 0, 0, 0)
It acts like it adds it..but then it shows 0 in database.

Dss
 
Raven







PostPosted: Mon Oct 18, 2004 9:01 am Reply with quote

Check the table with phpmyadmin and verify that the link is added or not.
 
dssripper







PostPosted: Mon Oct 18, 2004 9:17 am Reply with quote

The table is empty.


Dss
 
Raven







PostPosted: Mon Oct 18, 2004 11:26 am Reply with quote

Use phpmyadmin and paste this into the SQL window. That should tell you the error, if there is on.
Code:
insert into nuke_links_links values (NULL, '1', '0', 'test', '', 'http://www.links.com', 'test', now(), 'test', 'larry@links.com', '0', '', 0, 0, 0)
 
dssripper







PostPosted: Mon Oct 18, 2004 11:38 am Reply with quote

Here is the error

Code:


Error

SQL-query :

INSERT INTO nuke_links_links
VALUES (
NULL , '1', '0', 'test', '', 'http://www.links.com', 'test', now( ) , 'test', 'larry@links.com', '0', '', 0, 0, 0
)

MySQL said:

Column count doesn't match value count at row 1

Back
 
Raven







PostPosted: Mon Oct 18, 2004 12:34 pm Reply with quote

Your weblinks module is not in sync with the table schema. Your INSERT statement has 15 columns. How many are actually in the table?
 
dssripper







PostPosted: Mon Oct 18, 2004 1:48 pm Reply with quote

There were 16 columns. I compared the fields to an orignal sql and dropped the one
that was in it. That fixed it! Thanks again my friend!!!!



Dss
 
Raven







PostPosted: Mon Oct 18, 2004 2:38 pm Reply with quote

RavensScripts
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©