Posted by admin on June 3, 2009 under PHP Upgrade |
PHP 5.2.x installation
To upgrade to PHP 5.2.x on CentOS/RHEL/Fedora:
Step 1) Set up the atomic channel:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
Step 2) Upgrade to PHP 5.2.x:
yum upgrade
Step 3) Replace the PHP 4 php.ini with PHP 5.2.x’s (if applicable):
mv /etc/php.ini.rpmnew /etc/php.ini
Step 4) Replace the php.conf with the PHP 5.2.x php.conf (if applicable):
mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf
Step 5) Restart the webserver
service httpd restart
(or)
/etc/init.d/httpd restart
Posted by admin on under osCommerce Services |
osCommerce Maintenance Plans
Do you want a professional osCommerce expert on call ?
OsComerceCoders.com offers that via tailored osCommerce maintenance plans.
- Install contributionsCreate Tailored custom coding solutions
- Offer advice on the structure and function of your osCommerce store
- Offer advice on Search Engine Optimization and assist you with identifying and implementing Contributions / Strategies for this purpose
All you need to do is decide how many hours per month/quarter you require the assistance of an expert – OsComerceCoders.com can then set-up your personal osCommerce maintenance package.
Tackle the world of online selling and eCommerce with the extensive expertise and knowledge of OsComerceCoders.com by your side.
Our maintenance services includes maintaning the existing osCommerce shop as per your requirements and additional features.
If you are looking to maintain your osCommerce shop and customize your oscommerce store on ongoing basis this package is perfect for you.
This package includes all urgent repairs, patches as and when required and general site maintenance as needed by yourself.
We offer a variety of services to suit each and every website,
and our monthly hourly allowances accumulate if you dont use them in any given month to a maximum of 3 months worth -
please see our comparison chart below for full details.
The service does not include server maintenance,
this is a service to maintain and modify the osCommerce software only.
Graphical modifications and site layout amendments are also not included.
We charge 20 USD per hour and per month fee of 100 usd per month comprising of 5 hours of work per month.
Minimum contract is of 3 months.
Please use the contact us form to get in touch with us today
Posted by admin on May 12, 2009 under oScommerce Issues |
Open /includes/application_top.php
if (tep_session_is_registered(‘navigation’))
{
if (PHP_VERSION < 4)
{
$broken_navigation = $navigation;
$navigation = new navigationHistory;
$navigation->unserialize($broken_navigation);
}
}
else
{
tep_session_register(‘navigation’);
$navigation = new navigationHistory;
}
$navigation->add_current_page();
Replace with
// navigation history
if (tep_session_is_registered(‘navigation’)) {
if (PHP_VERSION < 4) {
$broken_navigation = $navigation;
$navigation = new navigationHistory;
$navigation->unserialize($broken_navigation);
} else {
$navigation = new navigationHistory;
}
} else {
tep_session_register(‘navigation’);
$navigation = new navigationHistory;
}
$navigation->add_current_page();
cheers
Posted by admin on May 10, 2009 under oScommerce Issues, osCommerce Services |
1016 – Can’t open file
The following error message is shown when a database table is corrupt and can no longer be accessed nor read properly:
1016 – Can’t open file ‘<database table name>.MYI’ (errno: 145)
The error message will always be shown until the database table involved has been repaired.
1016 – Can’t open file Solution
The following methods are available to repair damaged database tables, depending on whether the database server is still running or not:
o Using the “repair table” SQL statement
o Using the “myisamchk” command
The <database table name> part in the commands below must be replaced with the actual database table name as shown in the error message.
Using the “repair table” SQL statement
The following SQL statement can be executed when the database server is still running:
repair table <database table name>;
Using the “myisamchk” command
The following command, which is part of the MySQL installation, can be executed on the server when the database server is no longer running:
myisamchk /path/to/database/directory/<database table name>.MYI
References
o MySQL Documentation: 15.1.4.1 Corrupted MyISAM Tables
o MySQL Documentation: 14.5.2.6 REPAIR TABLE Syntax
o MySQL Documentation: 5.6.2.1 myisamchk Invocation Syntax
1030 – Got error 127 from table handler
This indicates the table mentioned is corrupt.
1030 – Got error 127 from table handler Solution
Try running a repair and optimize on the table in phpMyAdmin.
1046 – No Database Selected
This indicates that either no database has been created or the wrong database name DB_DATABASE exists in the configure.php files.
select configuration_key as cfgKey, configuration_value as cfgValue from configuration
1046 – No Database Selected Solution
Check to make sure the database has been created and the catalog/includes/configure.php and catalog/admin/includes/configure.php files for correct database name.
Warning: mysql_connect(): Access denied for user:
The following error message is shown when either the username or password is incorrect for the database connection:
Warning: mysql_connect(): Access denied for user: ‘username@localhost’ (Using password: YES) in /home/username/public_html/shop/includes/functions/database.php on line 19
Unable to connect to database server!
Warning: mysql_connect(): Access denied for user: Solution
You will need to check with your hosting provider the username and password required to access the MySQL database and/or check the catalog/includes/configure.php and catalog/admin/includes/configure.php files for incorrect information.
Warning: mysql_connect(): Can’t connect to local MySQL server through socket
The error Can’t connect to … normally means that there is no MySQL server running on the system or that you are using an incorrect Unix socket filename or TCP/IP port number when trying to connect to the server.
Warning: mysql_connect(): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (111)
in /var/www/html/store/catalog/includes/functions/database.php on line 19
Unable to connect to database server!
Warning: mysql_connect(): Can’t connect to local MySQL server through socket Solution
The following are checks for mysql to see if it is running and setup properly.
1. Start by checking whether there is a process named mysqld running on your server host.
Use ps xa | grep mysqld on Unix or the Task Manager on Windows.
2. It might also be that the server is running, but you are trying to connect using a TCP/IP port, named pipe, or Unix socket file different from those on which the server is listening. To find out what port is used, and where the socket is, you can do:
shell> netstat -l | grep mysql
3. The grant tables must be properly set up so that the server can use them for access control.
One way to determine whether you need to initialize the grant tables is to look for a `mysql’ directory under the data directory. (The data directory normally is named `data’ or `var’ and is located under your MySQL installation directory.) Make sure that you have a file named `user.MYD’ in the `mysql’ database directory. If you do not, execute the mysql_install_db script. After running this script and starting the server, test the initial privileges by executing this command:
shell> mysql -u root test
4. Sometimes a simple restart of mysql will fix the problem.
References
o MySQL Documentation: 5.5.8 Causes of Access denied Errors
o MySQL Documentation: A.2.2 Can’t connect to [local] MySQL server
Warning: mysql_connect(): Host ‘******’ is not allowed
This indicates the wrong server DB_SERVER information in the configure.php files.
Warning: mysql_connect(): Host ‘******’ is not allowed to connect to this MySQL server in *:\******\www\*****\******\includes\functions\database.php on line 19
Unable to connect to database server!
Warning: mysql_connect(): Host ‘******’ is not allowed Solution
Check the catalog/includes/configure.php and catalog/admin/includes/configure.php files for incorrect information.
Warning: Too many connections
The following error message is shown when the maximum number of connections to the database server has been reached:
Warning: Too many connections in /path/to/osCommerce/includes/functions/database.php on line 19 Warning: MySQL Connection Failed: Too many connections in /path/to/osCommerce/includes/functions/database.php on line 19. Unable to connect to database server!
Warning: Too many connections Solution
This problem is common for shared hosting servers and requires correspondance with the server administrator.
This problem is generally not a fault of osCommerce, but can be experienced when osCommerce is installed on budget hosting servers.
Posted by admin on April 18, 2009 under oScommerce Issues, oScommerce Upgrade |
This happens due to a bug in OSCommerce after the server upgrade is from PHP 4.x to PHP 5. The way the code was written in upload.php was using an undocumented feature that was not officially supported, and subsequently did not carry over into PHP 5.
To fix this, edit the ‘upload.php’ file mentioned in the error message using a text editor. Open the file and find the line (about 30 lines down) that says:
// self destruct
$this = null;
And edit it to say this:
// self destruct
// $this = null;
unset($this);
(basically comment out with // the $this = null; line and add the unset($this); line)
Your admin panel should work properly now.
This is a common issue with a working admin panel when php version upgrade to 5 is done