Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New install receiving Error! Unable to determine the page link!


Recommended Posts

OK so I'm a new user and as such I am learning... I have searched thru this site and read posts on google about anything that came up from my error and similar issues but have not found a resolution to correct my problem...

My problem is:

Error!

Unable to determine the page link!

Background:

I am hosting on ipage and have a domain via godaddy. I have changed the name servers to point to ipage and I have created a pointer to the sub directory my-domain/oscommerce-2.3.4/catalog I installed via drilling my-domain/oscommerce-2.3.4/catalog/install and can successfully installed cart. I can access my site via the two links that follow the install.

Those two links open but with a URL of the original hosted URL I used to ipage originally like this:

original-domain/my-domain /oscommerce-2.3.4/catalog/

But when I try to access via my-domain.com I get the above error…

One post suggested editing the .htaccess file which I did. But I got different errors non which has resolved my problem…

One post suggested to edit /includes/configure.php but from what I can see this file looks to point to the correct URL’s and folder paths.

 

Another suggests to correct /includes/functions/general.php and edit in function tep_href_link with:

global $HTTP_SERVER_VARS;
if($page='')
$HTTP_SERVER_VARS['PHP_SELF']

But that portion looks like: (and I can’t see where to edit)

 

 

///

// Redirect to another page or site

function tep_redirect($url) {

if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {

tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));

}

 

if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

if (substr($url, 0, strlen(HTTP_SERVER . DIR_WS_HTTP_CATALOG)) == HTTP_SERVER . DIR_WS_HTTP_CATALOG) { // NONSSL url

$url = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . substr($url, strlen(HTTP_SERVER . DIR_WS_HTTP_CATALOG)); // Change it to SSL

}

}

 

if ( strpos($url, '&') !== false ) {

$url = str_replace('&', '&', $url);

}

 

header('Location: ' . $url);

 

tep_exit();

}

 

I talked to ipage support and they stated it’s a scripting problem and to contact oscommerce…

Can anyone assist a neewb with my error please and thank you….

Link to comment
Share on other sites

It is not normal to install in the path /oscommerce-<version>/catalog/, although it's not forbidden. Usually it's just /catalog (or /shop, etc.). Most likely you have some incompatibility between your actual installation path and what you have defined in the configure.php files. Make sure the file ("dir") path is something like /home/<account name>/public_html/oscommerce-<version>/catalog (this can vary from host to host), and the HTML ("workspace") path is equivalently /oscommerce-<version>/catalog. Just so long as it matches where you actually installed the files.

Link to comment
Share on other sites

My OCD causes me to install in specific rev folders... :)

 

I've found some postings talking about having mutiple sites on one host server and having to edit the .htaccess file for each site adding

 

php_value include_path /my-domain/...

 

once I add it I get this error

 

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

So I think I'm on the right track... I think I'm going to install another site but just create a generic html pge and see if the pointers work...

Help I need to get this resolved the powers that b are breathing heavy upon my neck...

Link to comment
Share on other sites

Most servers forbid php_value and php_flag commands in the .htaccess file. You need to put those settings in the php.ini file (for most servers). The format will be slightly different (include_path = /my-domain/...). Some servers require an entry in .htaccess to tell PHP where to find php.ini, so ask your host tech support.

 

Double check exactly where you installed your store (directory path), and make sure the entries (both WS and DIR) in both configure.php files match the path. 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...