berry05 Posted December 23, 2008 Share Posted December 23, 2008 hello! when i install a game script everything is great until i try loading it and get this... Warning: opendir(/home/username/public_html//plugins) [function.opendir]: failed to open dir: No such file or directory in C:\wamp\www\gaming\plugins\language\functions.php on line 32 Warning: readdir(): supplied argument is not a valid Directory resource in C:\wamp\www\gaming\plugins\language\functions.php on line 33 Warning: sort() expects parameter 1 to be array, null given in C:\wamp\www\gaming\plugins\language\functions.php on line 37 Warning: Invalid argument supplied for foreach() in C:\wamp\www\gaming\plugins\language\functions.php on line 40 Warning: include(/home/username/public_html/plugins/site/themes/awesome/index.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\gaming\index.php on line 130 Warning: include() [function.include]: Failed opening '/home/username/public_html/plugins/site/themes/awesome/index.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\gaming\index.php on line 130 plz help! Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/ Share on other sites More sharing options...
ngreenwood6 Posted December 23, 2008 Share Posted December 23, 2008 If you look at the directory you are trying to do //plugins. you may have an extra slash that is not needed in there. Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/#findComment-721886 Share on other sites More sharing options...
trq Posted December 23, 2008 Share Posted December 23, 2008 The very first error shows two slashes after the public_html directory. Fix that, and you may resolve the rest. Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/#findComment-721888 Share on other sites More sharing options...
berry05 Posted December 23, 2008 Author Share Posted December 23, 2008 i see what your saying..i got rid of it and still getting the same error Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/#findComment-721892 Share on other sites More sharing options...
trq Posted December 23, 2008 Share Posted December 23, 2008 This path.... /home/username/public_html/plugins is not at all correct actually if your on windows. Does the directory exist? Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/#findComment-721895 Share on other sites More sharing options...
berry05 Posted December 23, 2008 Author Share Posted December 23, 2008 no it doesnt..but this is the code on line 32.. $dh = opendir($cfg['instdir']."plugins"); i got rid of the . and got this Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\wamp\www\gaming\plugins\language\functions.php on line 32 Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/#findComment-721899 Share on other sites More sharing options...
trq Posted December 23, 2008 Share Posted December 23, 2008 If the directory doesn't exist then your always going to get errors. Sounds like you need to read the install instructions. Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/#findComment-721904 Share on other sites More sharing options...
berry05 Posted December 23, 2008 Author Share Posted December 23, 2008 lol there was none o well...i'll figure it out Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/#findComment-721906 Share on other sites More sharing options...
berry05 Posted December 23, 2008 Author Share Posted December 23, 2008 thxs! Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/#findComment-721908 Share on other sites More sharing options...
berry05 Posted December 23, 2008 Author Share Posted December 23, 2008 found the problem..the config file was set to that..i had to change it! Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/#findComment-721914 Share on other sites More sharing options...
trq Posted December 23, 2008 Share Posted December 23, 2008 Thats the first thing you should look for when attempting to run other peoples code. Oh, that and install instructions. Quote Link to comment https://forums.phpfreaks.com/topic/138097-solved-php-errorsmight-be-because-of-wamp/#findComment-721918 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.