PDA

View Full Version : warnings and no login


stip
12-21-2005, 08:57 PM
Hi,
i get the following two messages:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in ...visitdresden/pixelpost/includes/functions.php on line 312

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in ... pixelpost/includes/functions.php on line 358

...and can't login with my username. asking for a new passsword won't help.

Any suggestions?

Ulrich

tinyblob
12-21-2005, 09:33 PM
sounds like you maybe dont have the right prefix in the includes/pixelpost.php file
did the install run okay?

stip
12-21-2005, 11:11 PM
same remarks when installing
the "individual part" of pixelpost.php was a copy of the original 1.4.3 version
hm

tinyblob
12-21-2005, 11:13 PM
instead of uploading the old one, try just entering the old info into the new pixelpost.php file
see what happens then

blinking8s
12-22-2005, 01:03 AM
you need to enter the information into the new pixelpost.php provided with 1.5beta

stip
12-22-2005, 09:24 AM
sorry for misunderstanding formulation: i only copied the four lines with the individual information to prevent typos - do it is the new file.

retyping won't help, by the way...

raminia
12-22-2005, 09:33 AM
does your host let you create new tables from PHP script? ask them.

tell my what's your PHP and MySQL version from admin panel >> Options >> general info

EDIT:
and check if you have correct DB prefix name in pixelpost.php

stip
12-22-2005, 09:35 AM
so, latest status: getting into the admin section, but still having those two lines:

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in visitdresden/pixelpost/includes/functions.php on line 312

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in visitdresden/pixelpost/includes/functions.php on line 358

- and another thing with the german Umlaute - this will be another thread and work for Conny :-)

stip
12-22-2005, 09:41 AM
does your host let you create new tables from PHP script? ask them.

tell my what's your PHP and MySQL version from admin panel >> Options >> general info

EDIT:
and check if you have correct DB prefix name in pixelpost.php


raminia, the prefix is correct - as a normal visitor you can see the page (http://fotos.visitdresden.net).

as far as i know the host lets me create new tables - at least it worked until yesterday :-)

versions:
PHP-version 5.0.5
MySQL version 4.1.15-Debian_0.dotdeb.0-log

thanks everybody!

raminia
12-22-2005, 09:44 AM
edit includes/functions.php and add
echo $query."<br />"; before
$query = mysql_query( $query ); on line 313
and tell me what you see in addition to warnings

stip
12-22-2005, 10:10 AM
just one more line on top,
like this:

show tables from db1020136-stipvisiten like 'pixelpost_addons'

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in visitdresden/pixelpost/includes/functions.php on line 313

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in visitdresden/pixelpost/includes/functions.php on line 359

...the line is 311 in my file, not 313. hope this is not the reason :-)

raminia
01-08-2006, 01:28 PM
This is presumed to be fixed. Try
http://forum.pixelpost.org/showpost.php?p=21694&postcount=34
for the fix. I problem persist please notify.