User-Login With One External PHP-Script

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Marcel
Posts: 80
Joined: Sat 8. Jan 2005, 13:07

MySQL Errors

Post by Marcel »

Hi

I installed this script, but now I get 2 MySQL Errors

Above Login form

Code: Select all

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/web243/html/user_login.php on line 132
Below Login form

Code: Select all

Warning: in_array(): Wrong datatype for second argument in /home/www/web243/html/user_login.php on line 411
Can anyone help.
Annovolk
Posts: 2
Joined: Sun 17. Sep 2006, 11:45

Error

Post by Annovolk »

Hallo,

ich bekomme unter 1.2.8 folgende Fehlermeldung

Code: Select all

Warning: Invalid argument supplied for foreach() in /www/htdocs/z234qbre/phpwcms/stuff/user_login.php on line 91

Warning: Invalid argument supplied for foreach() in /www/htdocs/z234qbre/phpwcms/stuff/user_login.php on line 100

Warning: Invalid argument supplied for foreach() in /www/htdocs/z234qbre/phpwcms/stuff/user_login.php on line 113
Wie kann das Problem behoben werden?

Anno
User avatar
wireless
Posts: 138
Joined: Sun 24. Oct 2004, 04:35
Location: Houston, Texas

I get teh same error

Post by wireless »

Above Login form

Code: Select all

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/web243/html/user_login.php on line 132 
 
Any ideas what I have done wrong?
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

Can I get more instruction about how to install this script pls... like where to copy the 2 files what steps do I have to follow?
Thanks
ImagePackging design,labels, catalogs,postcards,
jscholtysik

Post by jscholtysik »

Come on culda_a!!

Please read the description and the information within the code by yourself. Then you will understand it... :roll:


Joachim
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

ok sorry I did not know that is instruction in the files
I have seen only 2 files
ImagePackging design,labels, catalogs,postcards,
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

It seams that I will ask the same question... about this error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/loghinit/public_html/scripts/user_login.php on line 132
what should I do
ImagePackging design,labels, catalogs,postcards,
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

I receive a temporaly solution for this error:

just delete or make inactive the code from line 120 until 138 and the error code will be deleted.

but strange I have see that after loghin... when I want to log out is not working...but maybe is something that I did not do right
ImagePackging design,labels, catalogs,postcards,
Gismo
Posts: 18
Joined: Fri 26. Aug 2005, 15:42

Post by Gismo »

Hallo,

tolles Script.. allerdings bin ich wohl zu blöd:

1) kann jem. vielleicht mal eine step-by-step anleitung mit bildern erstellen, wie eine bestimmte ebene mit PW geschützt wird.
2) pw anfordern/user anfordern funktioniert noch nicht?
3) hab versucht das script zu installieren... jedoch kann ich auch ohne login die geschützten seiten sehen.

Grüße und danke!
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

you can see the section that you protect ... but you cand hide the article (content) that you want
ImagePackging design,labels, catalogs,postcards,
maxroach
Posts: 91
Joined: Mon 27. Feb 2006, 13:44

Re: MySQL Errors

Post by maxroach »

Marcel wrote:Hi

I installed this script, but now I get 2 MySQL Errors

Above Login form

Code: Select all

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/web243/html/user_login.php on line 132
Below Login form

Code: Select all

Warning: in_array(): Wrong datatype for second argument in /home/www/web243/html/user_login.php on line 411
Can anyone help.
Did you find a solution?
I have exactly the same problem...

Thank you
Florian
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

Take a look above in this topic I have write the solution just a few posts above... sure is a temporaly solution, but it works... anyway I write again here:
just delete or make inactive the code from line 120 until 138 and the error code will be deleted
ImagePackging design,labels, catalogs,postcards,
wingover
Posts: 58
Joined: Wed 13. Apr 2005, 13:18
Contact:

Post by wingover »

Hi,

I tested the script with 1.2.8 and it`s working well with files. Maybe I must change some things for working with the users from the system in the database. Maybe there are some changes from 1.2.6 to 1.2.8.

Here is a Screenshot from a site (http://spielwiese.wireframe.de), where I use the script.

Image

The first article of 'downloads' has 'id=4,4,0,0,1,0' and the second (the protected) has 'id=4,5,0,0,1,0'.
The alias of 'Downloads' is 'downloads' ;-)

Maybe that helps you to set up the stuff.


Grüzli - Andi
---------------------------------------------------
Vol Libre - der Traum vom freien Fliegen
http://www.gleitschirm-taxi.de
Faszination Berge
http://www.mountain-panorama.com
---------------------------------------------------
culda_a
Posts: 521
Joined: Tue 28. Feb 2006, 01:39
Contact:

Post by culda_a »

wingover do you know why when I press on the link to recover the password i don't receive it in my e-mail?
ImagePackging design,labels, catalogs,postcards,
User avatar
wireless
Posts: 138
Joined: Sun 24. Oct 2004, 04:35
Location: Houston, Texas

Post by wireless »

Does this script work with the 1.3 version?
Post Reply