djddc Posted March 7, 2010 Share Posted March 7, 2010 Hi all, I have this problem with my coding, could anyone perhaps tell me whats going wrong? This is the error : Warning: include_once(language//global.lang.php) [function.include-once]: failed to open stream: No such file or directory in /home/bendemic/public_html/includes/init.php on line 36 Warning: include_once() [function.include]: Failed opening 'language//global.lang.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bendemic/public_html/includes/init.php on line 36 Warning: include_once(language//category.lang.php) [function.include-once]: failed to open stream: No such file or directory in /home/bendemic/public_html/includes/init.php on line 37 Warning: include_once() [function.include]: Failed opening 'language//category.lang.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bendemic/public_html/includes/init.php on line 37 Warning: include_once(language//site.lang.php) [function.include-once]: failed to open stream: No such file or directory in /home/bendemic/public_html/includes/init.php on line 41 Warning: include_once() [function.include]: Failed opening 'language//site.lang.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bendemic/public_html/includes/init.php on line 41 Warning: include_once(language//categories_array.php) [function.include-once]: failed to open stream: No such file or directory in /home/bendemic/public_html/includes/init.php on line 47 Warning: include_once() [function.include]: Failed opening 'language//categories_array.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bendemic/public_html/includes/init.php on line 47 A Mysql error has occurred while running the script: * The query you are trying to run is invalid * Mysql Error Output: Unknown column 'exceeded_balance_email' in 'where clause' * SQL Query: SELECT user_id FROM probid_users WHERE active=1 AND balance>max_credit AND payment_mode=2 AND exceeded_balance_email=0 Quote Link to comment https://forums.phpfreaks.com/topic/194411-warning-include_once-error/ Share on other sites More sharing options...
Garethp Posted March 7, 2010 Share Posted March 7, 2010 Change // to / Quote Link to comment https://forums.phpfreaks.com/topic/194411-warning-include_once-error/#findComment-1022641 Share on other sites More sharing options...
djddc Posted March 7, 2010 Author Share Posted March 7, 2010 Hi Garethp thanks for your reply, Should I find the // in the init.php ? Quote Link to comment https://forums.phpfreaks.com/topic/194411-warning-include_once-error/#findComment-1022645 Share on other sites More sharing options...
PFMaBiSmAd Posted March 7, 2010 Share Posted March 7, 2010 You have got 4 similar error messages on 4 different lines in your program. They each show an invalid path statement that contains //. You would need to look at the lines of code mentioned in the error messages and try to determine why that invalid path is being produced. Either the path syntax is exactly what is shown in the error and needs to be corrected by removing one of the /'s or there is a variable or a defined constant being used in between the two // and the variable or defined constant is empty or does not exist and you would need to determine why it is empty or does not exist and correct that problem so that it does supply the expected value in the code. Quote Link to comment https://forums.phpfreaks.com/topic/194411-warning-include_once-error/#findComment-1022647 Share on other sites More sharing options...
djddc Posted March 7, 2010 Author Share Posted March 7, 2010 ok guys, thanks for your input I managed to solve the include_once problem. Now I just have this error left : A Mysql error has occurred while running the script: * The query you are trying to run is invalid * Mysql Error Output: Unknown column 'exceeded_balance_email' in 'where clause' * SQL Query: SELECT user_id FROM probid_users WHERE active=1 AND balance>max_credit AND payment_mode=2 AND exceeded_balance_email=0 Which has probably to do with something in the DB, right ? I am fairly new to php and mysql but i do have enough knowledge to work my way around, sometimes with some help like from you fellow members. I tried using search in myphpadmin for exceeded_balance_email in the DB i'm using but it didn't turn up any results Quote Link to comment https://forums.phpfreaks.com/topic/194411-warning-include_once-error/#findComment-1022649 Share on other sites More sharing options...
djddc Posted March 7, 2010 Author Share Posted March 7, 2010 problem solved. Quote Link to comment https://forums.phpfreaks.com/topic/194411-warning-include_once-error/#findComment-1022666 Share on other sites More sharing options...
turuplats Posted March 15, 2010 Share Posted March 15, 2010 ok guys, thanks for your input I managed to solve the include_once problem. Now I just have this error left : A Mysql error has occurred while running the script: * The query you are trying to run is invalid * Mysql Error Output: Unknown column 'exceeded_balance_email' in 'where clause' * SQL Query: SELECT user_id FROM probid_users WHERE active=1 AND balance>max_credit AND payment_mode=2 AND exceeded_balance_email=0 Which has probably to do with something in the DB, right ? I am fairly new to php and mysql but i do have enough knowledge to work my way around, sometimes with some help like from you fellow members. I tried using search in myphpadmin for exceeded_balance_email in the DB i'm using but it didn't turn up any results hello! i have same problem, what was solution? regards, im Quote Link to comment https://forums.phpfreaks.com/topic/194411-warning-include_once-error/#findComment-1026673 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.