Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

*** PLEASE HELP ***


Kubilay

Recommended Posts

Posted

System is

 

XP Home,

Apache 2.0

MySQL

 

Everything works like charm except i cannot see localhost/catalog/admin/index.php

 

It is blank !..I dunno if it has something to do with permissions..but whenever i uncheck read only from that folder..it keeps coming back...

 

pls help me guys

Posted
System is

 

XP Home,

Apache 2.0

MySQL

 

Everything works like charm except i cannot see localhost/catalog/admin/index.php

 

It is blank !..I dunno if it has something to do with permissions..but whenever i uncheck read only from that folder..it keeps coming back...

 

pls help me guys

install a contribution called protection of configuration that should solve all your problems

 

http://www.oscommerce.com/community/contri...f+configuration

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Posted
install a contribution called protection of configuration that should solve all your problems

 

http://www.oscommerce.com/community/contri...f+configuration

 

 

thanks for the quick reply BUT after installing and making necessary adjusments for the files, pages are still blank, i dont know where i am doing wrong. What i dont understand is that, these pages are showing blank while oscommerce pages are working perfectly..

 

:huh:

Posted

and this is my config file for admin

 

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://localhost/catalog/');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/catalog/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
// define our database connection
 define('DB_SERVER', 'localhost');
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '****');
 define('DB_DATABASE', 'commerce');
 define('USE_PCONNECT', 'true');
 define('STORE_SESSIONS', '');

Posted

If you can see your site but not the admin area then I'm guessing that you have php5 installed. If this is so then go to admin/includes/classes/upload.php and on line 31 where it says $this change it to unset ($this); - or just comment it out like so: //$this

 

Vger

Posted
If you can see your site but not the admin area then I'm guessing that you have php5 installed.  If this is so then go to admin/includes/classes/upload.php and on line 31 where it says $this change it to unset ($this); - or just comment it out like so: //$this

 

Vger

 

 

Yes sir im using php5, can u tell me exatly where it is..cuz my number of lines and your might not match since there are a lot $this variable in the script..

 

thank you !

Posted

download a phpeditor or something which has line numbers displayed.then edit locally and reupload the file.

Posted
download a phpeditor or something which has line numbers displayed.then edit locally and reupload the file.

 

My friend, that is what i am trying to say, i already have an editor that shows lines, but i did what he said and it doesnt work, and i though that that would be on some other line, since some of us delete the intro comments in scripts

Posted

OK after long search on internet, i found out what to unset there...

 

$this = null; line

and make it

 

// $this = null;

 

unset ($this);

 

 

well that doesnt work either... php5 doesnt work with oscommerce..gotta go back to version 4 i guess

Posted
OK after long search on internet, i found out what to unset there...

 

$this = null; line

and make it

 

// $this = null;

 

unset ($this);

well that doesnt work either... php5 doesnt work with oscommerce..gotta go back to version 4 i guess

 

if it does not work with version 5 then why are you trying anyway ?

Treasurer MFC

Posted

I have a similar problem. Everything was working fine and then suddenly the admin page would display, but anything else beyond that won't. If I click configuration from the admin panel for example, I just get a white page completly blank. I clicked view source

 

 

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="ltr" lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>osCommerce</title>

<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">

<script language="javascript" src="includes/general.js"></script>

</head>

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();">

<!-- header //-->

 

 

In case that helps anybody understand what is happening. Any suggestions would be appreciated. (I was editing the catalog/style.css) when this happened. I am pretty sure that is just coincidence though.

Posted
If you can see your site but not the admin area then I'm guessing that you have php5 installed.  If this is so then go to admin/includes/classes/upload.php and on line 31 where it says $this change it to unset ($this); - or just comment it out like so: //$this

 

Vger

 

 

thank you wery much...i had same problem and it's gone now :thumbsup:

Posted

I said to use either //$this or unset ($this); not to use both (as quoted in your post). e.g.

 

// self destruct

//$this = null;

 

return false;

 

or

 

// self destruct

unset ($this);

 

return false;

 

osCommerce will work with php5 with just that minor change. It has to be remembered that osCommerce was around for two years before php5, and no programme can be made forward-compatible.

 

Vger

 

OK after long search on internet, i found out what to unset there...

 

$this = null; line

and make it

 

// $this = null;

 

unset ($this);

well that doesnt work either... php5 doesnt work with oscommerce..gotta go back to version 4 i guess

Posted
if it does not work with version 5 then why are you trying anyway ?

 

 

cuz i couldnt get MySQL and PHP4 worked for some reason. I wouldnt be screaming here for help....

 

Vger thank you for your help but it is still not working..blank page like always

Posted

I tried the imfamous $this=null; comment to no avail. I started tracing where the page stopped loading by putting in comments and it seems to quit right here:

 

// check session.auto_start is disabled

if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

if (ini_get('session.auto_start') == '1') {

$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

}

}

 

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

if (!is_dir(DIR_FS_DOWNLOAD)) {

$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

}

}

 

if ($messageStack->size('header') > 0) {

echo $messageStack->output('header');

}

 

If I comment this out it loads more, but can't start a session is my guess. Any Ideas?

 

 

 

 

 

Changing this:

 

$this = null;

 

to this:

 

//$this = null;

 

worked for me.

Posted

Just an FYI- for anybody else that might have this problem and end up reading this thread. In my case the problem was that I had uploaded the catalog/includes/header.php to the admin/includes folder. So basically I feel like a dumb ass, but I did get it figured out and fixed. May my hardship save you hours of trouble....Remember to check which folder you are sending your files to. I am also putting comments in all of the files with the same names that are in different folders to indicate which folder they belong in, just in case this happens again I will be able to look at the file comment and quickly tell which file it is.

 

Thanks to those that tried to help.

 

 

I tried the imfamous $this=null; comment to no avail. I started tracing where the page stopped loading by putting in comments and it seems to quit right here:

 

// check session.auto_start is disabled

  if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

    if (ini_get('session.auto_start') == '1') {

      $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

    }

  }

 

  if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

    if (!is_dir(DIR_FS_DOWNLOAD)) {

      $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

    }

  }

 

  if ($messageStack->size('header') > 0) {

    echo $messageStack->output('header');

  }

 

If I comment this out it loads more, but can't start a session is my guess. Any Ideas?

Posted

Just an FYI- for anybody else that might have this problem and end up reading this thread. In my case the problem was that I had uploaded the catalog/includes/header.php to the admin/includes folder. So basically I feel like a dumb ass, but I did get it figured out and fixed. May my hardship save you hours of trouble....Remember to check which folder you are sending your files to. I am also putting comments in all of the files with the same names that are in different folders to indicate which folder they belong in, just in case this happens again I will be able to look at the file comment and quickly tell which file it is.

 

Thanks to those that tried to help.

 

 

I tried the imfamous $this=null; comment to no avail. I started tracing where the page stopped loading by putting in comments and it seems to quit right here:

 

// check session.auto_start is disabled

  if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {

    if (ini_get('session.auto_start') == '1') {

      $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');

    }

  }

 

  if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {

    if (!is_dir(DIR_FS_DOWNLOAD)) {

      $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');

    }

  }

 

  if ($messageStack->size('header') > 0) {

    echo $messageStack->output('header');

  }

 

If I comment this out it loads more, but can't start a session is my guess. Any Ideas?

Archived

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

×
×
  • Create New...