Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 935
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Errors in the error log (mysql_fetch_assoc) - PortalBlocks.php

Started by Grimm, September 17, 2009, 08:28:51 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Grimm

Hello,

I have just gone through SMF Support and after switching off Eval(), saw that the errors I had were coming from SP. So here I am and hopefully someone can help me.

My Support "ticket" at SMF: (Version Infos are all in that post)
http://www.simplemachines.org/community/index.php?topic=337107.0

In the Error Log, I constantly get the following error:
2: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
Datei: /home/www/web218/html/smf2/Sources/PortalBlocks.php(3221) : eval()'d code
Zeile: 197

On line 3221 of PortalBlocks.php is the eval($content)
On line 197 of PortalBlocks.php is the following:
<li>', sp_embed_image('dot'), ' <strong>', $modSettings['karmaLabel'], '</strong> ';

Still nothing to do with mysql fetch statement though and I have disabled Karma on my board.
I did try enabling Karma with no change to the errors recieved.

Could someone help me find the error I am experiencing?

ccbtimewiz

mysql_fetch_assoc is only used in the file directly for SMF 1.1.x.

You are using SMF 2.0, aren't you? I'd assume so considering the URL has "smf2" in it.

Grimm

Yup, im using SMF 2.x

(As written in the link i posted:)
Some infos about my board:
SMF 2.0 RC1.2
SMF Gallery Lite      2.0.7
YouTube BBCode    2.5.1   
Member Color Link    3.0.7
SimplePortal    2.3 RC1   
Ultimate Profile    0.9
SimplePortal - German    2.3
Theme: BlackBox (2.0 RC1)

GD Version: 2.0 or higher
MySQL Version: 5.0.45
PHP: 4.3.11
Server Version: Apache

So if its used for SMF 1.1.x, why am I having a problem with it...respectivly, how can i stop it?

Grimm

FYI,

Upgraded SimplePortal from 2.3 RC1 to 2.3 (Shoutbox Height has been fixed, thanks!) but the errors are still there.

2: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
Datei: /home/www/web218/html/smf2/Sources/PortalBlocks.php(3262) : eval()'d code
Zeile: 197

[SiNaN]

That error is related to one of your Custom PHP block codes, not SimplePortal.
And slowly, you come to realize... It's all as it should be...

Grimm

Right you are. I had a custom php block to show a random picture from the SMF Gallery. "d'oh" ;)

Time to replace that block.

Thanks for the help