Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STS Error


gcap

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...