WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


Javascript Export Help

Version: 2.12
printPrint


Javascript Export Help
Vix
Member

Usergroup: Customer
Joined: Dec 26, 2003
Total Topics: 5
Total Posts: 12
Posted 09/19/04 - 09:07 PM:
quote post
#1
I'm getting a bunch of errors when I try to use the javascript export.

No javascript folder:
This is the error message I get:

Warning: fopen(../javascript/gall_survivingchristmas.js): failed to open stream: Not a directory in /path/to/filefunctions.php on line 148
Warning: fwrite(): supplied argument is not a valid stream resource in /path/to/filefunctions.php on line 149
Warning: fwrite(): supplied argument is not a valid stream resource in /path/to/filefunctions.php on line 150
Warning: fclose(): supplied argument is not a valid stream resource in /path/to/filefunctions.php on line 151


Also, a file called javascript is created.


If javascript folder exists, chmoded to 777

This is the error message:
Warning: fopen(../javascript/): failed to open stream: Is a directory in /path/to/filefunctions.php on line 148
Warning: fwrite(): supplied argument is not a valid stream resource in /path/to/filefunctions.php on line 149

The js file has this content:
document.write('Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /path/to/classes/database.php on line 72Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /path/to/classes/database.php on line 72Warning: Division by zero in /path/to/commonfuncs.php on line 1404'<img src="<a href="<a href="<a href="<a href="<a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.gif"""""" target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.gif""""" target="_blank"><a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g " target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g </a> if"""" target="_blank"><a href="<a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g "" target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g " target="_blank"><a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g <" target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g </a> if""" target="_blank"><a href="<a href="<a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g """ target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g "" target="_blank"><a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g " target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g </a> " target="_blank"><a href="<a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g <"" target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g <" target="_blank"><a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g " target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g </a> </a> if"" target="_blank"><a href="<a href="<a href="<a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g """" target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g """ target="_blank"><a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g " target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g </a> "" target="_blank"><a href="<a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g "" target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g " target="_blank"><a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g <" target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g </a> " target="_blank"><a href="<a href="<a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g <""" target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g <"" target="_blank"><a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g " target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g </a> <" target="_blank"><a href="<a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g "" target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g " target="_blank"><a href="http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g <" target="_blank">http://www.webmastersite.net/forums/templates/images_default/smilies/wink.g </a> </a> if" border="0" alt="wink">;

And the javascript folder is chmoded to 666
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5796
Posted 09/19/04 - 11:53 PM:
quote post
#2
666 as a directory permission makes the directory unusable. It has to be 777, or on some servers 755.

Will test this momentarily, anyhow.

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founcer of Red Hat
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 55
Total Posts: 5796
Posted 09/20/04 - 01:07 AM:
quote post
#3
Tested with WSN Gallery 2.12, toplist images,numcomments,5,descending and file test.js. It gives no errors and correctly generates the test.js with proper content.

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founcer of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.