gcap Posted January 27, 2010 Share Posted January 27, 2010 I have tried installing sts a couple of imes now and being quite new to this i seem to be duffing it some how. please tell me how to get rid of this Warning: Division by zero in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Warning: Division by zero in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Warning: require(php) [function.require]: failed to open stream: No such file or directory in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Warning: require(php) [function.require]: failed to open stream: No such file or directory in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Fatal error: require() [function.require]: Failed opening required 'php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 this is what line 128 looks like: // include navigation history class require(DIR_WS_CLASSES . 'navigation_history.php'); thank you! Quote Link to comment Share on other sites More sharing options...
Guest Posted January 27, 2010 Share Posted January 27, 2010 I have tried installing sts a couple of imes now and being quite new to this i seem to be duffing it some how. please tell me how to get rid of this Warning: Division by zero in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Warning: Division by zero in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Warning: require(php) [function.require]: failed to open stream: No such file or directory in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Warning: require(php) [function.require]: failed to open stream: No such file or directory in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Fatal error: require() [function.require]: Failed opening required 'php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 this is what line 128 looks like: // include navigation history class require(DIR_WS_CLASSES . 'navigation_history.php'); thank you! I think you are looking at the wrong file. You are looking in shop/includes/application_top.php but should be looking in shop/admin/includes/application_top.php Quote Link to comment Share on other sites More sharing options...
gcap Posted January 28, 2010 Author Share Posted January 28, 2010 I think you are looking at the wrong file. You are looking in shop/includes/application_top.php but should be looking in shop/admin/includes/application_top.php you were right i have put that back to the way it was but now i get this: Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Fatal error: require() [function.require]: Failed opening required 'includes/classes/navigation_history.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 what do I need to do, i bet it something simple but your help is very much appreciated thank you! Quote Link to comment Share on other sites More sharing options...
gcap Posted January 28, 2010 Author Share Posted January 28, 2010 i have also tried to overwrite application_top.php with original files from the catalogue folder in both catalog/includes and catalog/admin/includes. it now says 'opps appears the link is broken' when i try to access my admin panel Quote Link to comment Share on other sites More sharing options...
Guest Posted January 28, 2010 Share Posted January 28, 2010 you were right i have put that back to the way it was but now i get this: Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Warning: require(includes/classes/navigation_history.php) [function.require]: failed to open stream: No such file or directory in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 Fatal error: require() [function.require]: Failed opening required 'includes/classes/navigation_history.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 what do I need to do, i bet it something simple but your help is very much appreciated thank you! Make sure you do this: Upload admin/includes/application_top.php =>> admin/includes/application_top.php Upload shop/includes/application_top.php =>> shop/includes/application_top.php Because the error you get in /home/brentbna/public_html/shop/admin/includes/application_top.php on line 128 is the file that should be in shop/includes/application_top.php You have exchanged those files. Quote Link to comment Share on other sites More sharing options...
gcap Posted January 29, 2010 Author Share Posted January 29, 2010 right, uploaded shop/includes/application_php, as as there is no application_php in the admin/includes folder in both versions of sts i have downloaded, i re-uploaded the original and am getting 'this link appears broken' brentwood nursery zadir http catalog login php. so basically it looks like i need the correct shop/admin/includes/application_php? Quote Link to comment Share on other sites More sharing options...
gcap Posted January 29, 2010 Author Share Posted January 29, 2010 http://www.brentwoodnursery.co.za/shop becomes www.brentwoodnursery.co.zadir_ws_http_cataloglogin.php/ but a broken link Quote Link to comment Share on other sites More sharing options...
multimixer Posted January 29, 2010 Share Posted January 29, 2010 right, uploaded shop/includes/application_php, as as there is no application_php in the admin/includes folder in both versions of sts i have downloaded, i re-uploaded the original and am getting 'this link appears broken' brentwood nursery zadir http catalog login php. so basically it looks like i need the correct shop/admin/includes/application_php? A file application_php don't exist at all. There are 2 files called application_top.php, one located in catalog/includes/ and the other one in catalog/admin/includes STS do not make any changes to catalog/admin/includes/application_top.php, only to catalog/includes/application_top.php What to do now 1) Take the original catalog/admin/includes/application_top.php and put it back to the right location (you can use either your backup before starting with STS or take a fresh one from a vanilla package) 2) Do the same with catalog/includes/application_top.php. 3) If you have an unmodified shop replace your catalog/includes/application_top.php with the one found in the contribution package. I the file is already modified, do the changes manually as per instructions 4) If you have any issues with STS search or post in the STSv4 forum Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
gcap Posted January 30, 2010 Author Share Posted January 30, 2010 thanks again will let you know! Quote Link to comment Share on other sites More sharing options...
gcap Posted January 30, 2010 Author Share Posted January 30, 2010 i have done what you suggested and now when i try go to mysites admin www.brentwoodnursery.co.za/shop/admin it says oops the link appears to be broken and in the address bar it changes to this www.brentwoodnursery.co.zadir_ws_http_cataloglogin.php/ not sure now Quote Link to comment Share on other sites More sharing options...
multimixer Posted January 30, 2010 Share Posted January 30, 2010 No idea what you are doing there. Since it is a new installation, I would start from the beginning more careful this time Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Guest Posted January 30, 2010 Share Posted January 30, 2010 i have done what you suggested and now when i try go to mysites admin www.brentwoodnursery.co.za/shop/admin it says oops the link appears to be broken and in the address bar it changes to this www.brentwoodnursery.co.zadir_ws_http_cataloglogin.php/ not sure now This is what this line tells me: www.brentwoodnursery.co.za/dir_ws_http_catalog/login.php/ You have not configured your shop/includes/configure.php file. Inside that file you should have: define('DIR_WS_HTTP_CATALOG', '/shop/'); ...but I think you dont..;-) Look at all your define('?????? to make shure they are right configured. Quote Link to comment 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.