logo
WSN Links PHP Directory Software
Features Showcase Reviews Demos Purchase Manual Support
 

mysql error

Version: 4.1.35
Example URL: http://www.freewebbargains.com


Page: 1 2

mysql error
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 03/28/08 - 04:12 AM:
quote post
#1
I've started getting the following mysql error messages. I THINK I first noticed after upgrading to .35. It only happens very occasionally. Just now happened after submitting a link, link did submit ok. Am posting this now and will keep an eye on it and see when it happens again.



Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/freewebb/public_html/databases/mysql.php on line 30

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/freewebb/public_html/databases/mysql.php on line 27
Non-numeric id value given in creating object.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 03/29/08 - 03:00 AM:
quote post
#2
See if you can get debug output, though if it doesn't appear on consecutive page loads that could be difficult.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 03/29/08 - 10:38 PM:
quote post
#3
Unfortunately it might only happen once a week. So I am awaiting the next time to see if there is a pattern, ie after submitting a link, But when I refresh it NEVER appears again




Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 03/30/08 - 05:56 AM:
quote post
#4
It could be an hourly/daily cron, or a randomly-timed action. Try index.php?dorand=1 , and the run now links for the three crons from Admin -> Misc -> Crons

I'd only expect those to come up on index.php though, not after submitting a link. You're talking about the redirect "thanks for submitting" page, right?

Edited by Paul on 03/30/08 - 06:01 AM
dorjepy
Beginner

Usergroup: Member
Joined: Mar 06, 2006
Total Topics: 1
Total Posts: 3
Posted 04/05/08 - 09:04 AM:
quote post
#5
I am also getting "non-numeric id value given in creating object"
They occur only on accessing specific links. Regen of cats did not help.
If I perform the sql query directly, I get no error with 1 result.

Here is the debug info:

Query 19: SELECT `id` FROM wsn_links WHERE catid=82702 AND validated=1 AND hide=0 ORDER BY time ASC

Number of rows is 5

Load time so far: 0.31 seconds.

Query 20: SELECT `id`,`name`,`parent`,`validated`,`description`,`time`,`paren tnames`,`parentids`,`numlinks`,`numexlinks`,`hide`,`lastlink time`,`custom`,`lastedit`,`moderators`,`headerinfo`,`related `,`numsub`,`type`,`permissions`,`subscribers`,`subscriber`,` mixtypes`,`isalbum`,`orderlinks`,`totalcomments`,`ulsearchma x`,`ulsearchquery`,`ulsearchadult`,`alias`,`catcols`,`linkco ls`,`dmozpath`,`sponsorlinks`,`views`,`customwrap`,`deleted` ,`reqlinks`,`reqcoms`,`reqlinksdelay`,`priority`,`levelsdeep `,`lastposterid`,`lastpostername`,`lastcommenttime`,`lastthr eadid`,`lastthreadtitle`,`linkshere`,`exlinkshere`,`unvalida tedlinks`,`unvalidatedcomments`,`unvalidatedreviews`,`actasl ink`,`countposts`,`subcatshtml`,`nummembers`,`linksperpage`, `wysihtml`,`numonline`,`sponsorship`,`lastprofileurl`,`defau ltnoaccess`,`lastthreadurl`,`lastposturl` FROM wsn_categories WHERE id=75955

Load time so far: 0.31 seconds.

Query 21: SELECT `id`,`name`,`parent`,`validated`,`description`,`time`,`paren tnames`,`parentids`,`numlinks`,`numexlinks`,`hide`,`lastlink time`,`custom`,`lastedit`,`moderators`,`headerinfo`,`related `,`numsub`,`type`,`permissions`,`subscribers`,`subscriber`,` mixtypes`,`isalbum`,`orderlinks`,`totalcomments`,`ulsearchma x`,`ulsearchquery`,`ulsearchadult`,`alias`,`catcols`,`linkco ls`,`dmozpath`,`sponsorlinks`,`views`,`customwrap`,`deleted` ,`reqlinks`,`reqcoms`,`reqlinksdelay`,`priority`,`levelsdeep `,`lastposterid`,`lastpostername`,`lastcommenttime`,`lastthr eadid`,`lastthreadtitle`,`linkshere`,`exlinkshere`,`unvalida tedlinks`,`unvalidatedcomments`,`unvalidatedreviews`,`actasl ink`,`countposts`,`subcatshtml`,`nummembers`,`linksperpage`, `wysihtml`,`numonline`,`sponsorship`,`lastprofileurl`,`defau ltnoaccess`,`lastthreadurl`,`lastposturl` FROM wsn_categories WHERE id=82594

Non-numeric id value given in creating object.
WSN Links 4.1.36

Edited by dorjepy on 04/05/08 - 09:06 AM
dorjepy
Beginner

Usergroup: Member
Joined: Mar 06, 2006
Total Topics: 1
Total Posts: 3
Posted 04/06/08 - 08:29 AM:
quote post
#6
Links with "related" = "|||||" are causing the "Non-numeric id value given in creating object" error messages.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/06/08 - 02:52 PM:
quote post
#7
This sounds related to the related links problem which was fixed in 4.1.37. Do you still get it in the current version?
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 04/22/08 - 11:57 PM:
quote post
#8
Paul wrote:
It could be an hourly/daily cron, or a randomly-timed action. Try index.php?dorand=1 , and the run now links for the three crons from Admin -> Misc -> Crons

I'd only expect those to come up on index.php though, not after submitting a link. You're talking about the redirect "thanks for submitting" page, right?




I get a problem with running the hourly cron - error with debug on comes up with...



Load time so far: 0.14 seconds.

Query 5: SELECT `filename` FROM wsnlinks_crons WHERE id=6

Load time so far: 0.14 seconds.

Query 6: DELETE FROM wsnlinks_links WHERE deleted=1 and timedeleted < 1208069746

Load time so far: 0.57 seconds.

Query 7: UPDATE wsnlinks_settings SET content='1208933746' WHERE name='lastrotation'

Load time so far: 0.58 seconds.

Query 8: UPDATE wsnlinks_settings SET content='D' WHERE name='currentletter'

Load time so far: 0.59 seconds.

Query 9: SELECT `id`,`title`,`url`,`description`,`rating`,`votes`,`validated `,`catid`,`sumofvotes`,`email`,`time`,`hits`,`numcomments`,` hide`,`ownerid`,`voterips`,`voterids`,`lastedit`,`type`,`not ify`,`suspect`,`pendingedit`,`funds`,`suspended`,`alias`,`ex pire`,`ip`,`inalbum`,`typeorder`,`recipurl`,`hitsin`,`recipw ith`,`hitsinips`,`hitsoutips`,`lastcomment`,`related`,`inhid den`,`viewers`,`threadviewers`,`hitsintemp`,`hitsouttemp`,`o rigtype`,`importance`,`parentids`,`timesdead`,`timesemailed` ,`threadclosed`,`threadposters`,`lastposterid`,`lastposterna me`,`ownername`,`deleted`,`deletionreason`,`movedto`,`delete dby`,`timevalidated`,`filefield`,`message`,`sticky`,`downloa ds`,`pollid`,`posticon`,`savedby`,`validatedemail`,`unpaid`, `recipverified`,`effectivetime`,`sugcatid`,`pagerank`,`wysih tml`,`movedid`,`unrevised`,`feedurl`,`feedcache`,`feedcachet ime`,`tags`,`xmlsource`,`ordercomments`,`lastpadupdate`,`pad file`,`lastmonthlycheck`,`invisibleto`,`profileurl`,`lastpro fileurl`,`banner`,`smallbanner`,`tinybanner`,`membersonly`,` timesrenewed`,`couponcode`,`bargain`,`articletext`,`author`, `copyright`,`tel`,`contact`,`otherbannerattach`,`nochex`,`me rchant`,`price`,`timedeleted`,`offertype` FROM wsnlinks_links WHERE deleted=0 AND hide=0 AND expire > 0 AND expire < 1208933746

Number of rows is 1


Warning: require_once(classes/modlog.php) [function.require-once]: failed to open stream: No such file or directory in /home/freewebb/public_html/crons/hourly.php on line 39

Fatal error: require_once() [function.require]: Failed opening required 'classes/modlog.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/freewebb/public_html/crons/hourly.php on line 39
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/23/08 - 12:56 PM:
quote post
#9
You don't have a classes/modlog.php file, or are you running that from the admin panel? It's not made to handle admin panel relative paths. Will change it to, even though it doesn't normally run from there.

Edited by Paul on 04/23/08 - 01:00 PM
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 04/25/08 - 02:25 AM:
quote post
#10
Paul wrote:
You don't have a classes/modlog.php file, or are you running that from the admin panel? It's not made to handle admin panel relative paths. Will change it to, even though it doesn't normally run from there.


The classes/modlog.php file is definitely there - I have not changed anything and wouldn't even know or understand how to run it from the admin panel.

Paul, I am subscribed to this forum so I am notified immediately of posts and of course any replies to posts I make. This has always worked perfectly, but for some reason over the last few weeks I am only getting the odd notice - I didn't realise you had replied to this thread! And, no, they are not going into my spam box I checked smiling face
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/26/08 - 01:07 AM:
quote post
#11
If it says "Failed opening required 'classes/modlog.php" then there are only three possibilities:
1) The page being viewed is in the admin subdirectory, so that /classes/ isn't a subdirectory of it.
2) classes/modlog.php doesn't exist.
3) classes/modlog.php is inaccessible in some way, like a 403 forbidden error. Try visiting it directly in your web browser.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 04/26/08 - 02:40 AM:
quote post
#12
Paul wrote:
If it says "Failed opening required 'classes/modlog.php" then there are only three possibilities:
1) The page being viewed is in the admin subdirectory, so that /classes/ isn't a subdirectory of it.
2) classes/modlog.php doesn't exist.
3) classes/modlog.php is inaccessible in some way, like a 403 forbidden error. Try visiting it directly in your web browser.


1) nope - it is a normal setup in the root of my domain. It has happened when submitting but recently mainly when I first go to the site's home page.

2) nope - it is DEFINITELY there. In fact I have just upgraded the site to 4.1.40 and my server now shows that file with a modified date of today.

3) Going to http://www.freewebbargains.com/classes/modlog.php gives me a blank page - NOT a 403 or indeed any other error.

This is the ONLY site it is happening on - ALL my other sites (which are on the same server) are ok. All my sites are set up the same way.

Again - I did not get email notification re the update of this thread. Although I did for Jez's last post, which is how I happened to see this.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/26/08 - 03:50 AM:
quote post
#13
Blank page is normal since it has no output.

Have you tried reuploading classes/modlog.php?

Subscriptions were switched off on the forum... probably when I was trying to drastically cut down on emails going through the server which were bogging it down.
babrees
Expert
Avatar

Usergroup: Customer
Joined: Aug 19, 2005
Location: England
Total Topics: 258
Total Posts: 819
Posted 04/26/08 - 04:07 AM:
quote post
#14
Paul wrote:
Blank page is normal since it has no output.

Have you tried reuploading classes/modlog.php?


Yep - just tried it again but still no joy, just the error messages.

Paul wrote:
Subscriptions were switched off on the forum... probably when I was trying to drastically cut down on emails going through the server which were bogging it down.


aha! Shame, but understandable.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 49
Total Posts: 5539
Posted 04/26/08 - 10:57 PM:
quote post
#15
Can you give me a specific example of a URL where you know you've seen this modlog message -- not the earlier different message about which you started the thread?
Search thread for
Download thread as

Page: 1 2



You don't have permission to post.

Please login or register.

Admin Control Panel

   
Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support
© 2008 Paul Knierim. All rights reserved.