Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

After successful installation the main page is empty.


medved

Recommended Posts

Posted

Enable error messages in your .htaccess file (assuming you are on a Linux server).

 

It sounds like you have a configuration error that is stopping the PHP scripts from processing.

 

Are register_globals on?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Hi,

Thank you very much for replay.

 

How do I Enable error messages in my .htaccess file?

 

What is register_globals and how do I turn it on.

 

Again thanks for help.

Posted

Add the following lines to your .htaccess file:

php_flag display_errors on

php_flag register_globals on

 

Then request a php page and you should see what the error is.

 

Once you get it fixed, change the display_errors setting from on to off. ;)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Hi, thanks for fast replay

 

I added those two lines to .htaccess file and this is the message I?ve got after I entered this link http://www.jmimport.com/catalog/index.php

 

 

Internal Server Error

 

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

 

Please contact the server administrator, [email protected] 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.

 

 

Thank you

Posted

Are you on a Linux or Windows server?

 

Your host either doesn't allow php directives in your .htaccess file or they have some other setting enabled.

 

Contact your host and let them know that you received an HTTP 500 error when you added the 2 lines (give them the lines) to your .htaccess file. They should be able to advise you as to the way it needs to be done within their environment.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

I will contact them as soon as I can. That means on Monday because they don?t work during weekend. But I believe I am on Linux because they support PHP plus I just configured MySQL Admin. But I will contact them on Monday and tell them about the problem. Thank you very much.

Posted

PHP and MySQL will run on Linux or Windows - they are cross-platform. I just wanted to let you know. :)

 

If you do not mind, please report back what their response is in case other users encounter the same problem. ;)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Hi,

 

Surprisingly I?ve just got an answer from my hosting provider. For the command

php_flag display_errors on I was tolled to use this in PHP

 

ini_set("display_errors","1");

 

instead. Because they say php commands in .htaccess could overload the server.

 

For the command php_flag register_globals on they say it is no need to overload the server. It is turned on by default. Plus changes in .htaccess they have blocked because it could cause (under certain circumstances) an access to strange folders or webs. That?s way the effort to alter .htaccess will wind up with HTTP 500 error.

 

Please can you tell me where and how can I add ini_set("display_errors","1"); or is there anything else I could do?

Posted

Edit your includes/application_top.php file and add the line:

ini_set("display_errors","1");

 

after the <?php at the top of the file.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Hi,

 

I added the ini_set("display_errors","1"); to application_top.php

 

and this is what I?ve got after I entered this link: http://www.jmimport.com/catalog/index.php

 

Warning: main(includes/configure.php) [function.main]: failed to open stream: No such file or directory in /hosting/medek/jmimport.com/catalog/includes/application_top.php on line 29

 

Fatal error: main() [function.require]: Failed opening required 'includes/configure.php' (include_path='.:/usr/lib/php') in /hosting/medek/jmimport.com/catalog/includes/application_top.php on line 29

 

 

Here is a copy of the fist lines of application_top.php so you can see if I added ini_set("display_errors","1"); properly

 

 

<?php ini_set("display_errors","1");

/*

$Id: application_top.php,v 1.280 2003/07/12 09:38:07 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// start the timer for the page parse time log

define('PAGE_PARSE_START_TIME', microtime());

 

// set the level of error reporting

error_reporting(E_ALL & ~E_NOTICE);

 

// check if register_globals is enabled.

// since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized.

if (function_exists('ini_get')) {

ini_get('register_globals') or exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.');

}

 

// Set the local configuration parameters - mainly for developers

if (file_exists('includes/local/configure.php')) include('includes/local/configure.php');

 

// include server parameters

require('includes/configure.php');

 

if (strlen(DB_SERVER) < 1) {

if (is_dir('install')) {

header('Location: install/index.php');

}

}

 

// define the project version

 

 

Thank you very much.

Posted

You did it correctly because you received the error message output.

 

The problem is that your includes/configure.php is not being found. What are the attributes of your configure.php file and does it have any contents?

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Hi,

You where right, I must have changed the name of the configure.php file by mistake. Thank you very much for helping me to find it.

 

So I corrected that but now there is another problem:

 

When I enter this link http://www.jmimport.com/catalog/index.php I get this message:

 

1046 - No Database Selected

 

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

 

[TEP STOP]

 

Thank you

Posted

Did you ever go through the setup process (i.e. www.jmimport.com/install)?

 

It sounds like you missed that step. Before you do that you will need to create a database from within your server's control panel.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Yes I did. But I am going to install it again. I?ll let you know when it?s done.

 

Thank you

Posted

In step seven I?ve got this error. The same error as in the previous installation.

 

 

The following error has occurred:

 

 

The configuration files do not exist, or permission levels are not set.

 

Please perform the following actions:

cd /hosting/medek/jmimport.com/catalog/includes/

touch configure.php

chmod 706 configure.php

cd /hosting/medek/jmimport.com/catalog/admin/includes/

touch configure.php

chmod 706 configure.php

 

If chmod 706 does not work, please try chmod 777.

 

If you are running this installation procedure under a Microsoft Windows environment, try renaming the existing configuration file so a new file can be created.

 

 

Do you know what could be wrong? Thank you.

Posted

Access your site via FTP and for the following files:

admin/includes/configure.php

includes/configure.php

 

set their permissions to 777 and then go through the install script again.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Yes it works! Thank you so much! First I didn?t know how to set the permission but I went to help section of the ftp program and that helped.

 

But there is still some problem

When I enter http://www.jmimport.com/catalog/index.php I get these erorr messages:

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 19502 is not allowed to access owned by uid 0 in /hosting/medek/jmimport.com/catalog/includes/functions/sessions.php on line 148

 

 

Warning: I am able to write to the configuration file: /hosting/medek/jmimport.com/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

Thank you

Posted

I fixed one problem now I have just one left:

 

Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 19502 is not allowed to access owned by uid 0 in /hosting/medek/jmimport.com/catalog/includes/functions/sessions.php on line 148

 

Do you know how to fix it? Thank you very much for help

Posted

Edit your includes/configure.php and admin/includes/configure.php files and at the end of the file you will see:

define('STORE_SESSIONS', '');

 

change it to be:

define('STORE_SESSIONS', 'mysql');

 

and you should be good to go. Be sure to remove the ini_set line from the beginning of your includes/application_top.php file.

 

In the future, when you see an error message, you should stop and resolve it rather than attempting to continue on. ;)

 

Glad to hear that you are up and running.

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Posted

Hi,

 

The problem is solved.

 

Thank you so, so much for your help time and patience with me. I do appreciate it. I didn?t believe it will be resolved so quickly. You are really good. I wish you all the best. :thumbsup:

 

Now I only need to adjust the store to my needs. That will be a long journey. It might happen that you will come across my other problem. ;)

 

Again thank you very much.

Posted

You are very welcome and I wish you the best of luck in life and with your store. :)

"Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein

Archived

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

×
×
  • Create New...