Webmastersite.net
Register Log In

MySQL error in options

Comments on MySQL error in options

finsandfur
Forum Regular

Usergroup: Customer
Joined: Apr 18, 2006

Total Topics: 28
Total Comments: 103
Posted Apr 25, 2009 - 10:46 AM:

I'm getting an error when selecting "options" from the menu also.

Using version 5.0.45

It throws a PM notification on top of it, and turning off IM/PM doesn't get rid of it.

I'm not quite sure how to decipher it.
 

An error occoured at http://www.finsandfur.net/profile.php?action=memb... on 2009-04-25 15:26:25. Please relay this data to support. Error #2: 'mysql_num_rows(): supplied argument is not a valid MySQL result resource' in /home/finsnet/public_html/databases/mysql.php on line 47. Debug info:

Step 1 of backtrace:
File: /home/finsnet/public_html/databases/mysql.php
Line: 47
Function: mysql_num_rows
Arguments:

Step 2 of backtrace:
File: /home/finsnet/public_html/classes/database.php
Line: 153
Function: numrows
Arguments:
Class: db

Step 3 of backtrace:
File: /home/finsnet/public_html/includes/templatefunctions.php
Line: 549
Function: numrows
Arguments:
Class: database

Step 4 of backtrace:
File: /home/finsnet/public_html/end.php
Line: 371
Function: runtoplist
Arguments:
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 26, 2009 - 3:17 AM:

So am I. V.5.0.45
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 26, 2009 - 9:26 AM:

That's a toplist problem. No way to tell from here which toplist is the problem, except it's apparently one that doesn't apply to any of my websites or tests. So, things I don't normally use which are in that page would include xml feeds, expired links, hidden links, pending links. Which of those does the account you're testing with own any of?

Looks like the expired links toplist is in there twice, but with different numbers so that probably wouldn't be generating that error.
finsandfur
Forum Regular

Usergroup: Customer
Joined: Apr 18, 2006

Total Topics: 28
Total Comments: 103
Posted Apr 26, 2009 - 11:43 AM:

I dont use any toplists. Well I take that back, I had the default toplist functional on the front page that showed the last five added links, but that's it and is turned off.

If the "options" page is calling for toplists it's not anything I've initiated.
finsandfur
Forum Regular

Usergroup: Customer
Joined: Apr 18, 2006

Total Topics: 28
Total Comments: 103
Posted Apr 26, 2009 - 11:49 AM:

And as I look further, I can see the toplists initiated by the "options" page which are;
  1. Your feeds
  2. Your expired links
  3. Your links
  4. Your pending links
  5. Your expired links
  6. Your hidden links


I would assume my account owns all of them since I am the only administrator, and the only one with admin or moderator status/permissions.

These are toplists that are automatically being generated by the options page, so how can they "not apply to any of your websites or tests".
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 26, 2009 - 12:11 PM:

Like Finsandfur I don't have any toplists on this site I am working on (http://www.papillonclub.co.uk/wsnlinks/). I have removed the toplist from the main.tpl. The only toplists therefore are those default ones on the members options. My debug is slightly different. Attached in case you need it.

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Apr 27, 2009 - 10:01 AM:

Your error appears to show a misnamed reference to the feeds table. Are you sure you've been applying the template update instructions given on upgrade? The template has:
<!-- BEGIN TOPLIST 5 -->
<CONFIG>xmlfeeds,time,20,descending,ownerid={THISMEMBERID}</CONFIG>


What does your template have for toplist #5?

This probably changed about six months ago.
finsandfur
Forum Regular

Usergroup: Customer
Joined: Apr 18, 2006

Total Topics: 28
Total Comments: 103
Posted Apr 27, 2009 - 6:03 PM:

<!-- BEGIN TOPLIST 5 -->
<CONFIG>quotes,rand(),1,ascending</CONFIG>
"{QUOTECONTENT}"
<br >- {QUOTEAUTHOR} <IF {QUOTESOURCE}>({QUOTESOURCE})</IF>
<!-- END TOPLIST 5 -->
No, I've been going around the template upgrades thinking it would trash all my alterations.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Apr 27, 2009 - 11:05 PM:

Paul wrote:
Your error appears to show a misnamed reference to the feeds table. Are you sure you've been applying the template update instructions given on upgrade? The template has:
<!-- BEGIN TOPLIST 5 -->
<CONFIG>xmlfeeds,time,20,descending,ownerid={THISMEMBERID}</CONFIG>

What does your template have for toplist #5?

This probably changed about six months ago.


I found this in the home.tpl and no, it did not have the "xmlfeeds" bit, just feeds. However, I always apply template update instructions, and beside which that template has not been customised or touched, so it should have been upgraded automatically anyway.

I have actually wondered before if the upgrade sometimes misses something. For instance I have upgraded two different sites in the past which have both had a template customised in the same manner. One site upgrade gave me upgrade instructions whilst the other did not.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Apr 28, 2009 - 11:43 AM:

finsandfur - If you have two toplist #5's in the member home main template, that would be a problem. The quotes toplist was certainly never shipped in that template.

babrees wrote:
that template has not been customised or touched, so it should have been upgraded automatically anyway.


It must've been marked in the 'customized' color. Please check which templates are in the customized color in your template editor, and revert any that aren't actually customized. Uploading via FTP can cause them to be marked as customized when they aren't, because of operating system differences in the number of characters involved in a line break.

As for why it wouldn't list the instructions, I see it in the list for changes between the 4.1 and 5.0 series templates: www.wsnforum.com/filecompar...=%2Ftemplates%2Fdefault%2F (search for "feeds," and you'll see it there). It'll run a 4.1 -> 5.0 upgrade test to see if it's in the admin panel output too.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#11 - Quote - Permalink
Posted Apr 28, 2009 - 12:16 PM:

In looking at the Manage Templates about half of those in the customised colour are not actually customised. How do I revert them?
finsandfur
Forum Regular

Usergroup: Customer
Joined: Apr 18, 2006

Total Topics: 28
Total Comments: 103
#12 - Quote - Permalink
Posted Apr 28, 2009 - 10:04 PM:

I completely removed TOPLIST 5 and the "Options" button error still exists.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
#13 - Quote - Permalink
Posted Apr 28, 2009 - 11:43 PM:

Hi Finsandfur - did you check on your home.tpl template that the configuration was as #7 above? I found the xml was missing in mine, as soon as I copied and pasted Paul's configuration it worked ok for me.
finsandfur
Forum Regular

Usergroup: Customer
Joined: Apr 18, 2006

Total Topics: 28
Total Comments: 103
#14 - Quote - Permalink
Posted Apr 29, 2009 - 5:17 AM:

I keep forgetting about that home template for logged in members. disapproval

That worked babrees.

You mentioned it and I still overlooked it.

Thanks Much!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#15 - Quote - Permalink
Posted Apr 29, 2009 - 2:44 PM:

babrees wrote:
In looking at the Manage Templates about half of those in the customised colour are not actually customised. How do I revert them?


Click them, then click "revert to default" which appears just to the upper right of the box where you edit the template content.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.