Zen Cart Logo
Forums / Upgrading to 1.5.x / bunch of errors since upgrade, help please

bunch of errors since upgrade, help please

Views: 5,039

Results 1 to 20 of 22
21 Feb 2013, 3:06 PM
#1
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

bunch of errors since upgrade, help please

Been trying to resolve a number of issues with my site since the upgrade, i hired a coder from an external site think he may have just patched the site to look upgraded and left errors. when trying to disable a product i have sold by clicking the green box it reloads the page but makes no change to product status so i have to go onto the product and select out of stock.

If i try to view an order to update it as shipped i get the following error....

Fatal error: Call to undefined method currencies::get_decimal_places() in /home/sites/crazygamer.co.uk/public_html/*****-admin/orders.php on line 615

got a few more bugs i have just noticed in the error log on my server too....
[Thu Feb 21 13:13:56 2013] [error] [client 2.26.26.67] Failed loading /usr/local/IonCube/ioncube_loader_lin_5.2.so: /usr/local/IonCube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory

and..

[Thu Feb 21 13:13:56 2013] [error] [client 2.26.26.67] Failed loading /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: cannot open shared object file: No such file or directory

the log just shows these two errors on repeat mode, also if i try to code a "£" symbol it gives me "£10" i also get the symbol on all my order confirm emails?

any suggestions?

21 Feb 2013, 3:21 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,102
Plugin Contributions:
56

Re: bunch of errors since upgrade, help please

For the first one (currency-related), it sounds like the file /YOUR_ADMIN/includes/classes/currencies.php is damaged (you might try reloading from the v1.5.1 shipped version).

The next two are specific to your hosting account.

The last one sounds like you've got a mismatch between the character set used by your database (DB_CHARSET and your database's collation) and the one specified in your language file (/YOUR_ADMIN/includes/languages/english.php and /includes/languages/YOUR_TEMPLATE/english.php).

21 Feb 2013, 5:38 PM
#3
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: bunch of errors since upgrade, help please

first error being this one... "when trying to disable a product i have sold by clicking the green box it reloads the page but makes no change to product status so i have to go onto the product and select out of stock." or did you mean the one after that? ive tried a fresh currencies.php but it made no difference so i put the one back that was already there that i had backed up. should i ask the host company by email about the errors i spotted in the error log?

21 Feb 2013, 5:56 PM
#4
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: bunch of errors since upgrade, help please

Xbox Memberships:

first error being this one... "when trying to disable a product i have sold by clicking the green box it reloads the page but makes no change to product status so i have to go onto the product and select out of stock." or did you mean the one after that? ive tried a fresh currencies.php but it made no difference so i put the one back that was already there that i had backed up. should i ask the host company by email about the errors i spotted in the error log?

Do you have Image Handler 4 installed?
If so, compare your \admin\includes\modules\category_product_listing.php with a fresh one. IH4 inserts some legagy code that conflicts with ZC 1.5x . IH4 only needs on line of code in that file

<?php echo '<a href="' . zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' . $products->fields['products_id'] . '&current_category_id=' . $current_category_id) . '">' . zen_image(DIR_WS_IMAGES . 'icon_image_handler.gif', ICON_IMAGE_HANDLER) . '</a>'; ?>

the rest of the changed code is from before ZC 1.5 (unless you have made other modifications to this file)

21 Feb 2013, 6:00 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: bunch of errors since upgrade, help please

should i ask the host company by email about the errors i spotted in the error log?

[Thu Feb 21 13:13:56 2013] [error] [client 2.26.26.67] Failed loading /usr/local/IonCube/ioncube_loader_lin_5.2.so: /usr/local/IonCube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory

and..

[Thu Feb 21 13:13:56 2013] [error] [client 2.26.26.67]Failed loading /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: cannot open shared object file: No such file or directory

You can first check in your admin > tools > server version info >
Search for Ion cube and zend to see if they are part of the php
If not then yes contact your host

What addons do you have installed - that might use ioncube???

21 Feb 2013, 6:23 PM
#6
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: bunch of errors since upgrade, help please

I did what you said and searched for Ion cube and zend in the server info. I couldn't locate anything under "Ion Cube" but zend seems to be working "PHP Version: 5.2.17 (Zend: 2.2.0)" and is in the php. I'm not sure what addons could be using Ioncube.

21 Feb 2013, 6:53 PM
#8
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: bunch of errors since upgrade, help please

" Error: No matching Configuration Keys were found ... ion cube"

The addons i have installed are:
Quickbooks import QBI
Quickbooks Download
Ceon iridium payment module
Bettertogether admin
Google Analytics
Simple Seo urls (disabled)
Apsona shopadmin
Amazon Exporter
Ebid Exporter
Reward points
Google merchant center feeder

21 Feb 2013, 9:30 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: bunch of errors since upgrade, help please

Go to admin > tools > server version info >
What do you see for
Zen Cart -????
Database Patch Level: - ?????

21 Feb 2013, 10:56 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: bunch of errors since upgrade, help please

kobra:

[Thu Feb 21 13:13:56 2013] [error] [client 2.26.26.67] Failed loading /usr/local/IonCube/ioncube_loader_lin_5.2.so: /usr/local/IonCube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory

and..

[Thu Feb 21 13:13:56 2013] [error] [client 2.26.26.67]Failed loading /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: cannot open shared object file: No such file or directory

> You can first check in your admin > tools > server version info >
> Search for Ion cube and zend to see if they are part of the php
> If not then yes contact your host
> 
> What addons do you have installed - that might use ioncube???

> **Xbox Memberships:**
>
> I did what you said and searched for Ion cube and zend in the server info. I couldn't locate anything under "Ion Cube" but zend seems to be working "PHP Version: 5.2.17 (Zend: 2.2.0)" and is in the php. I'm not sure what addons could be using Ioncube.

> **kobra:**
>
> What addons do you have??
> 
> Use developers tool kit in your admin and search for "ion cube"
> <http://www.zen-cart.com/content.php?80-how-do-i-find-out-what-files-to-edit>
> <http://www.zen-cart.com/content.php?81-how-do-i-use-the-developers-toolkit>

If the error message says "ioncube", then you best do your search for "ioncube" not "Ion Cube".
21 Feb 2013, 11:20 PM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: bunch of errors since upgrade, help please

Design75:

Do you have Image Handler 4 installed?
If so, compare your \admin\includes\modules\category_product_listing.php with a fresh one. IH4 inserts some legagy code that conflicts with ZC 1.5x . IH4 only needs on line of code in that file

<?php echo '<a href="' . zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' . $products->fields['products_id'] . '&current_category_id=' . $current_category_id) . '">' . zen_image(DIR_WS_IMAGES . 'icon_image_handler.gif', ICON_IMAGE_HANDLER) . '</a>'; ?>
> 
> the rest of the changed code is from before ZC 1.5 (unless you have made other modifications to this file)

The code in that file needs to look like this:

From Line(s) 325 / 326 :
```php
// Split Page
?>
                <td class="dataTableContent" width="20" align="right"><?php echo $products->fields['products_id']; ?></td>
                <td class="dataTableContent"><?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=new_product_preview&read=only' . '&product_type=' . $products->fields['products_type'] . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . zen_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . $products->fields['products_name']; ?></td>
                <td class="dataTableContent"><?php echo $products->fields['products_model']; ?></td>
                <td colspan="2" class="dataTableContent" align="right"><?php echo zen_get_products_display_price($products->fields['products_id']); ?></td>
                <td class="dataTableContent" align="right"><?php echo $products->fields['products_quantity']; ?></td>
                <td class="dataTableContent" width="50" align="left">
<?php
      if ($products->fields['products_status'] == '1') {
        echo zen_draw_form('setflag_products', FILENAME_CATEGORIES, 'action=setflag&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : ''));?>
        <input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_green_on.gif" title="<?php echo IMAGE_ICON_STATUS_ON; ?>" />
        <input type="hidden" name="flag" value="0" />
        </form>
<?php
      } else {
        echo zen_draw_form('setflag_products', FILENAME_CATEGORIES, 'action=setflag&pID=' . $products->fields['products_id'] . '&cPath=' . $cPath . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '') . ((isset($_GET['search']) && !empty($_GET['search'])) ? '&search=' . $_GET['search'] : ''));?>
        <input type="image" src="<?php echo DIR_WS_IMAGES ?>icon_red_on.gif" title="<?php echo IMAGE_ICON_STATUS_OFF; ?>"/>
        <input type="hidden" name="flag" value="1" />
        </form>
<?php
      }
      if (zen_get_product_is_linked($products->fields['products_id']) == 'true') {
        echo '  ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED) . '<br>';
      }
?>
                </td>
<?php if ($action == '') { ?>
                <td class="dataTableContent" align="right"><?php echo $products->fields['products_sort_order']; ?></td>
                <td class="dataTableContent" align="right">
        <?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id']  . '&action=new_product' . (isset($_GET['search']) ? '&search=' . $_GET['search'] : '')) . '">' . zen_image(DIR_WS_IMAGES . 'icon_edit.gif', ICON_EDIT) . '</a>'; ?>
        <?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id'] . '&action=delete_product') . '">' . zen_image(DIR_WS_IMAGES . 'icon_delete.gif', ICON_DELETE) . '</a>'; ?>
        <?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id'] . '&action=move_product') . '">' . zen_image(DIR_WS_IMAGES . 'icon_move.gif', ICON_MOVE) . '</a>'; ?>
        <?php echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id'] .'&action=copy_to' ) . '">' . zen_image(DIR_WS_IMAGES . 'icon_copy_to.gif', ICON_COPY_TO) . '</a>'; ?>
        <?php echo '<a href="' . zen_href_link(FILENAME_IMAGE_HANDLER, 'products_filter=' . $products->fields['products_id'] . '&current_category_id=' . $current_category_id) . '">' . zen_image(DIR_WS_IMAGES . 'icon_image_handler.gif', ICON_IMAGE_HANDLER) . '</a>'; ?>
<?php
// BOF: Attribute commands
22 Feb 2013, 1:03 PM
#12
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: bunch of errors since upgrade, help please

kobra:

[Thu Feb 21 13:13:56 2013] [error] [client 2.26.26.67] Failed loading /usr/local/IonCube/ioncube_loader_lin_5.2.so: /usr/local/IonCube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory

and..

[Thu Feb 21 13:13:56 2013] [error] [client 2.26.26.67]Failed loading /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.9/php-5.2.x/ZendOptimizer.so: cannot open shared object file: No such file or directory

> You can first check in your admin > tools > server version info >
> Search for Ion cube and zend to see if they are part of the php
> If not then yes contact your host
> 
> What addons do you have installed - that might use ioncube???

Server Host: web130.extendcp.co.uk (127.0.0.1)       	Database Host: localhost (127.0.0.1)
Server OS: Linux 2.6.32-279.14.1.el6.x86_64    	Database: MySQL 5.5.30-log
Server Date: 22/02/2013 12:58:15   	Database Date: 22/02/2013 12:58:15
Server Up Time: 12:58:15 up 84 days, 4:27, 0 users, load average: 10.94, 10.71, 9.29 	HTTP Server: Apache/2
PHP Version: 5.2.17 (Zend: 2.2.0)   PHP Memory Limit: 256M 	PHP Safe Mode: Off
PHP File Uploads: On    Max Size: 64M 	POST Max Size: 8M
Database Data Size: 3,911 kB 	Database Index Size: 1,114 kB

Zen Cart
Zen Cart 1.5.0
Patch: 1::
Database Patch Level: 1.5.0
v1.5.0   [2012-02-28 16:42:06]   (Fresh Installation)
v1.3.8   [2009-11-23 06:15:46]   (Fresh Installation)

and i tried all variations of the spelling including "ioncube" the error on the editing of the order has now dissapeared although as a friend was following the advice yesterday i am sort of trying to figure out what he changed for that to happen now
22 Feb 2013, 6:31 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: bunch of errors since upgrade, help please

Files encoded with ioncube often contain a header similar to the following before a long block of encoded code:

if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$_ln='/ioncube/ioncube_loader'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(FILE);if((@$__id[1])==':'){$__id=str_replace('\','/',substr($__id,2));$__here=str_replace('\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.FILE." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('The file <b>'.FILE.'</b> has been encoded with the <a href="http://www.ioncube.com">ionCube PHP Encoder</a> and requires the free '.basename($__ln).' <a href="http://www.ioncube.com/loaders.php">ionCube PHP Loader</a> to be installed.');exit(199);

Thus a search for PHP files containing "ioncube" or "ionCube" should find any such files.
And if none of your files contain that, then there should be nothing that actually triggers an error saying the the .so files for ioncube can't be found or loaded.

22 Feb 2013, 6:45 PM
#14
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: bunch of errors since upgrade, help please

Error: No matching Configuration Keys were found ... ioncube

very odd indeed :(

22 Feb 2013, 6:52 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: bunch of errors since upgrade, help please

Xbox Memberships:

Error: No matching Configuration Keys were found ... ioncube

very odd indeed :(
Um, you're searching only "configuration keys", not PHP files. Wrong search option.

23 Feb 2013, 9:38 AM
#16
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: bunch of errors since upgrade, help please

no it gives me the same message no matter what search bar i use just tried it then myself with every option there.
I originally used the very last option which appears to be a search for everything option and i told it to search everywhere ie all files catalog/admin

Attachment 11986

23 Feb 2013, 9:16 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: bunch of errors since upgrade, help please

Okay, then there's a real possibility that none of this has anything to do with any files you're using for Zen Cart.

You quoted earlier from logs showing errors about BOTH ioncube and zendoptimizer, so that suggests that maybe your server has some php.ini entries that are triggering instructions for those components to be loaded. That's something your hosting company will need to fix.
And, if the errors WERE appearing (especially if the host recently updated PHP or something like that) and have magically STOPPED, then perhaps the host's administrator has already fixed it, presumably because they saw the errors flagged in their own audits or because other customers complained about it too.

If the errors have stopped, forget about it.

25 Feb 2013, 11:10 AM
#18
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: bunch of errors since upgrade, help please

unfortunatly im still getting the errors...

[Mon Feb 25 11:02:31 2013] [error] [client 2.27.187.152] Failed loading /usr/local/IonCube/ioncube_loader_lin_5.2.so: /usr/local/IonCube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory

im not sure if this could be causing the one last issue i have with the punctuated a before all my £ signs. I also found a file called "skipversioncheck.php" which confirms my theory that my website has been patched to look upgraded, maybe a lesson to look more closely at the ratings of workers before hiring them on the site i used to hire the guy that "upgraded" my site

25 Feb 2013, 11:34 AM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: bunch of errors since upgrade, help please

Xbox Memberships:

[Mon Feb 25 11:02:31 2013] [error] [client 2.27.187.152] Failed loading /usr/local/IonCube/ioncube_loader_lin_5.2.so: /usr/local/IonCube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory

im not sure if this could be causing the one last issue i have with the punctuated a before all my £ signs.
Not likely.

See: http://www.zen-cart.com/content.php?313-should-i-convert-my-store-from-iso-8859-1-to-utf8

28 Feb 2013, 10:35 AM
#20
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: bunch of errors since upgrade, help please

My mate said he tried that but it didnt work?