Jump to content

Installation on thumbdrive problem


Guest fandango

Recommended Posts

Guest fandango

Hi all, i have just done a 3.20 install on a thumb drive as a demo site for a client, all is well except that when i view any pages including the admins I keep getting this at the top of the page:

Have done a few remote installs before without this ever happening. Anyone any clues?? Cos im lost. Thanks in advance :whistle:

Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\sslSwitch.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\sslSwitch.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\session.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\session.inc.php on line 30



Deprecated: Function ereg() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 119



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\currencyVars.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\currencyVars.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\content\index.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\content\index.inc.php on line 30



Deprecated: Function eregi_replace() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 64



Deprecated: Function eregi_replace() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 64



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\searchForm.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\searchForm.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\session.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\session.inc.php on line 30



Deprecated: Function ereg() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 119



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\categories.inc.php on line 29



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\categories.inc.php on line 29



Deprecated: Function eregi_replace() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 64



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\randomProd.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\randomProd.inc.php on line 30



Deprecated: Function eregi_replace() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 64



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\info.inc.php on line 29



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\info.inc.php on line 29



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 30



Deprecated: Function ereg() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 119



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\language.inc.php on line 47



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\currency.inc.php on line 29



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\currency.inc.php on line 29



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\shoppingCart.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\shoppingCart.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\popularProducts.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\popularProducts.inc.php on line 30



Deprecated: Function eregi_replace() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 64



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\saleItems.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\saleItems.inc.php on line 30



Deprecated: Function eregi_replace() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 64



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\mailList.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\mailList.inc.php on line 30



Deprecated: Function ereg() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 119



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\siteDocs.inc.php on line 30



Deprecated: Function eregi() is deprecated in E:\EasyPHP3.1\www\upload\includes\boxes\siteDocs.inc.php on line 30



Deprecated: Function eregi_replace() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 64



Deprecated: Function eregi_replace() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 64



Deprecated: Function eregi_replace() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 64



Deprecated: Function eregi_replace() is deprecated in E:\EasyPHP3.1\www\upload\includes\functions.inc.php on line 64

Link to comment
Share on other sites

PHP 5.3.0 has deprecated the ereg functions. PHP suggests using preg_match() instead. But, being deprecated does not mean they are not available (removed in PHP 6). PHP 5.3.0 has also introduced the E_DEPRECATED and E_USER_DEPRECATED error messages.

In your PHP.INI file, where the error type notices are set, try:

error_reporting = E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED)

Link to comment
Share on other sites

  • 1 month later...

Editing a PHP script (ini.inc.php) vs. editing your PHP installation (php.ini) file are two different things.

If you want to edit the ini.inc.php file, use the following instead:

error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED));

What was given earlier was NOT a php statement. The above is. And it only affects those parts of CC that call the ini.inc.php file.

Link to comment
Share on other sites

  • 4 months later...

Hi

Sorry to be a dumb boy here but im just got to grips with doing minor changes to php codes can someone please explain what changes are required and to which files . I cannot find this php.inc file is this not part of the cubecart structure?

Link to comment
Share on other sites

With respect to this conversation about CubeCart V3.0x, the ini.inc.php file is located in the /includes/ folder and you will be changing line 3.

Thank you very much fixed it perfect thanks again, if your ever in sheffield i owe you a drink or two

thanks again

Link to comment
Share on other sites

  • 4 months later...
Guest goa604

Hi,

The above fix works perfect, thank you @bsmither, the deprecated errors stopped showing up in the header of the storefront. However when I logged into the admin and tried to upload a new product image. The same errors started showing up in the image upload pop-up window, uploads work fine though.

Deprecated: Function eregi() is deprecated in /home/itfs/public_html/mysite.com/includes/sslSwitch.inc.php  on line 30



Deprecated: Function eregi() is deprecated in /home/itfs/public_html/mysite.com/includes/sslSwitch.inc.php on line 30



Deprecated: Function eregi() is deprecated in /home/itfs/public_html/mysite.com/admin/includes/auth.inc.php on line 30



Deprecated: Function eregi() is deprecated in /home/itfs/public_html/mysite.com/admin/includes/auth.inc.php on line 30



Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/itfs/public_html/mysite.com/includes/sslSwitch.inc.php:30) in /home/itfs/public_html/mysite.com/admin/includes/auth.inc.php on line 44

Pointers to whats going wrong would be appreciated.

Pritam

Link to comment
Share on other sites

There are at least three admin files that are complete web pages and are presented to the user as new browser windows. As such, and as these scripts are not meant to be called directly, they really should perform some security checks. But not all of these files do.

We modified the ini.inc.php file to switch off warning messages about deprecated functions. The ini.inc.php file's main job is to pre-sanitize rogue user input.

\admin\filemanager\upload.php (no pre-sanitization, yes authorization)

\admin\misc\lookupip.php (no pre-sanitization, no authorization)

\admin\misc\licForm.php (yes pre-sanitization, yes authorization)

These are in addition to any 3rd Party mod that is a complete web page (has <html><head><body> tags).

The Filemanager Upload script is actually a component of FCKeditor, but customized for CubeCart. This file really should have the following line in it.

// Init var :

include("../../includes/ini.inc.php");

Note: www.YOUR_STORE.com/admin/misc/lookupip.php?ip=xxx.yyy.zzz.aaa

is a publicly accessible page.

Link to comment
Share on other sites

Guest goa604

There are at least three admin files that are complete web pages and are presented to the user as new browser windows. As such, and as these scripts are not meant to be called directly, they really should perform some security checks. But not all of these files do.

We modified the ini.inc.php file to switch off warning messages about deprecated functions. The ini.inc.php file's main job is to pre-sanitize rogue user input.

\admin\filemanager\upload.php (no pre-sanitization, yes authorization)

\admin\misc\lookupip.php (no pre-sanitization, no authorization)

\admin\misc\licForm.php (yes pre-sanitization, yes authorization)

These are in addition to any 3rd Party mod that is a complete web page (has <html><head><body> tags).

The Filemanager Upload script is actually a component of FCKeditor, but customized for CubeCart. This file really should have the following line in it.

// Init var :

include("../../includes/ini.inc.php");

Note: www.YOUR_STORE.com/admin/misc/lookupip.php?ip=xxx.yyy.zzz.aaa

is a publicly accessible page.

@bsmither , Thanks a million, you gave a great explanation and including the above mentioned line helped me get rid of the error.

Cheers !! :lol:

Link to comment
Share on other sites

Guest goa604

There are at least three admin files that are complete web pages and are presented to the user as new browser windows. As such, and as these scripts are not meant to be called directly, they really should perform some security checks. But not all of these files do.

We modified the ini.inc.php file to switch off warning messages about deprecated functions. The ini.inc.php file's main job is to pre-sanitize rogue user input.

\admin\filemanager\upload.php (no pre-sanitization, yes authorization)

\admin\misc\lookupip.php (no pre-sanitization, no authorization)

\admin\misc\licForm.php (yes pre-sanitization, yes authorization)

These are in addition to any 3rd Party mod that is a complete web page (has <html><head><body> tags).

The Filemanager Upload script is actually a component of FCKeditor, but customized for CubeCart. This file really should have the following line in it.

// Init var :

include("../../includes/ini.inc.php");

Note: www.YOUR_STORE.com/admin/misc/lookupip.php?ip=xxx.yyy.zzz.aaa

is a publicly accessible page.

@bsmither , Thanks a million, you gave a great explanation and including the above mentioned line helped me get rid of the error.

Cheers !! :lol:

One week after the above fix was applied and everything was working smooth, today when I try to login to the admin panel I get these below mentioned errors:

Warning: session_start() [function.session-start]: open(/tmp/sess_ab13eb2abb7cead184d7cc367d42afc1, O_RDWR) failed: Permission denied (13) in /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php  on line 44



Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php:44) in /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php on line 44



Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php:44) in /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php on line 44



Warning: Cannot modify header information - headers already sent by (output started at /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php:44) in /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php on line 48



Warning: Unknown: open(/tmp/sess_ab13eb2abb7cead184d7cc367d42afc1, O_RDWR) failed: Permission denied (13) in Unknown on line 0



Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0




And, below mentioned error on the top of the header on the shop front.


Warning: session_start() [function.session-start]: open(/tmp/sess_8b9589316f958b6cdbb1f9db7a31cc18, O_RDWR) failed: Permission denied (13) in /home/itfs/public_html/viagemdossentidos.com/includes/sessionStart.inc.php on line 39



Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/itfs/public_html/viagemdossentidos.com/includes/sessionStart.inc.php:39) in /home/itfs/public_html/viagemdossentidos.com/includes/sessionStart.inc.php on line 39



Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/itfs/public_html/viagemdossentidos.com/includes/sessionStart.inc.php:39) in /home/itfs/public_html/viagemdossentidos.com/includes/sessionStart.inc.php on line 39



Warning: Cannot modify header information - headers already sent by (output started at /home/itfs/public_html/viagemdossentidos.com/in

I searched the forums for discussions relating to this error and I found a reply by @bsmither saying

Maybe your host (didn't say if you subscribe to a hosting provider or run your own) upgraded their version of PHP and you or they need to update your PHP.INI file. Or they may have moved your site to another server machine and need to make TMP folders writable by your account. Have you contacted them?

Yes, we did upgrade the php version on our server to 5.3 and thats where it all started, but @bsmither's above mentioned fix had gotten the cart running proper, so I would appreciate if you could tell if there's anything to be updated in the php.ini file, I could do that as it is a self-managed server.

Thanks

Link to comment
Share on other sites

Guest goa604

There are at least three admin files that are complete web pages and are presented to the user as new browser windows. As such, and as these scripts are not meant to be called directly, they really should perform some security checks. But not all of these files do.

We modified the ini.inc.php file to switch off warning messages about deprecated functions. The ini.inc.php file's main job is to pre-sanitize rogue user input.

\admin\filemanager\upload.php (no pre-sanitization, yes authorization)

\admin\misc\lookupip.php (no pre-sanitization, no authorization)

\admin\misc\licForm.php (yes pre-sanitization, yes authorization)

These are in addition to any 3rd Party mod that is a complete web page (has <html><head><body> tags).

The Filemanager Upload script is actually a component of FCKeditor, but customized for CubeCart. This file really should have the following line in it.

// Init var :

include("../../includes/ini.inc.php");

Note: www.YOUR_STORE.com/admin/misc/lookupip.php?ip=xxx.yyy.zzz.aaa

is a publicly accessible page.

@bsmither , Thanks a million, you gave a great explanation and including the above mentioned line helped me get rid of the error.

Cheers !! :lol:

One week after the above fix was applied and everything was working smooth, today when I try to login to the admin panel I get these below mentioned errors:

Warning: session_start() [function.session-start]: open(/tmp/sess_ab13eb2abb7cead184d7cc367d42afc1, O_RDWR) failed: Permission denied (13) in /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php  on line 44



Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php:44) in /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php on line 44



Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php:44) in /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php on line 44



Warning: Cannot modify header information - headers already sent by (output started at /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php:44) in /home/itfs/public_html/viagemdossentidos.com/admin/includes/auth.inc.php on line 48



Warning: Unknown: open(/tmp/sess_ab13eb2abb7cead184d7cc367d42afc1, O_RDWR) failed: Permission denied (13) in Unknown on line 0



Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0




And, below mentioned error on the top of the header on the shop front.


Warning: session_start() [function.session-start]: open(/tmp/sess_8b9589316f958b6cdbb1f9db7a31cc18, O_RDWR) failed: Permission denied (13) in /home/itfs/public_html/viagemdossentidos.com/includes/sessionStart.inc.php on line 39



Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/itfs/public_html/viagemdossentidos.com/includes/sessionStart.inc.php:39) in /home/itfs/public_html/viagemdossentidos.com/includes/sessionStart.inc.php on line 39



Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/itfs/public_html/viagemdossentidos.com/includes/sessionStart.inc.php:39) in /home/itfs/public_html/viagemdossentidos.com/includes/sessionStart.inc.php on line 39



Warning: Cannot modify header information - headers already sent by (output started at /home/itfs/public_html/viagemdossentidos.com/in

I searched the forums for discussions relating to this error and I found a reply by @bsmither saying

Maybe your host (didn't say if you subscribe to a hosting provider or run your own) upgraded their version of PHP and you or they need to update your PHP.INI file. Or they may have moved your site to another server machine and need to make TMP folders writable by your account. Have you contacted them?

Yes, we did upgrade the php version on our server to 5.3 and thats where it all started, but @bsmither's above mentioned fix had gotten the cart running proper, so I would appreciate if you could tell if there's anything to be updated in the php.ini file, I could do that as it is a self-managed server.

Thanks

Fixed: That error is cause due to the tmpDSK was full, I tried to delete it and some sessions were still opened I believe.

We did a server reboot and the errors were gone.

Link to comment
Share on other sites

  • 3 weeks later...
Guest goa604

After, couple of weeks one of site has started showing up this error above the header once again all the above fixes have been tried and also had been sucessful in getting rid of this error, however since couple days we started getting this error once again, wonder whats going wrong again.

Warning: preg_match() [function.preg-match]: Unknown modifier 'p' in /home/maindark/public_html/shop/live/includes/sslSwitch.inc.php on line 30



Warning: preg_match() [function.preg-match]: Unknown modifier 'p' in /home/maindark/public_html/shop/live/includes/sslSwitch.inc.php on line 30



Warning: Cannot modify header information - headers already sent by (output started at /home/maindark/public_html/shop/live/includes/sslSwitch.inc.php:30) in /home/maindark/public_html/shop/live/includes/session.inc.php on line 95

Link to comment
Share on other sites

Earlier, I said: PHP 5.3.0 has deprecated the ereg functions - including eregi(). PHP suggests using preg_match() instead.

It seems you went ahead and made a simple swap of preg_match() for eregi(). Can't do that.

Because these are super-simple string comparisons, PHP recommends that you use stristr() or stripos(). The horrible thing with this solution, however, is that needle and haystack have been reversed:

eregi($needle,$haystack)

stripos($haystack,$needle)

So, if you are actually going to replace eregi() with a non-deprecated function, be sure to get the order of the arguments correct for whatever you choose to use.

if (stripos($HTTP_SERVER_VARS['PHP_SELF'],".inc.php") || stripos($_SERVER['PHP_SELF'],".inc.php"))

(The reason preg_match() probably didn't work is because the $needle pattern also needs to be surrounded by a delimiter, for example forwardslashes: '/.ini.inc.php/', then all meta-characters need to be escaped.)

Link to comment
Share on other sites

  • 4 months later...

Editing a PHP script (ini.inc.php) vs. editing your PHP installation (php.ini) file are two different things.

If you want to edit the ini.inc.php file, use the following instead:

error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED));

What was given earlier was NOT a php statement. The above is. And it only affects those parts of CC that call the ini.inc.php file.

this worked!!!

thank you sooo much!!

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
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...