Jump to content

Recommended Posts

this is the error message I get when trying to open website in bowser:

Fatal error: Uncaught Error: Call to undefined function dl() in /home/cephas/public_html/index_enc_ion.php:2 Stack trace: #0 /home/cephas/public_html/index.php(23): require_once() #1 {main} thrown in /home/cephas/public_html/index_enc_ion.php on line 2

this is the index_enc_ion.php file.

<?php //003ab
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__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('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);

Could anyone tell me whats exactly wrong as I dont understand?


Link to post
Share on other sites

Welcome andrew davies! Glad to see you made it to the forums.

It seems you gave installed not the latest version of CubeCart 4, or a very early version of CubeCart 5, which requires a license check.

The reporting of the error may be due to the server environment having a version of PHP that no longer recognizes dl() as a core function.

Thus, an old version of CubeCart running on a new version of PHP. There will be problems.

Link to post
Share on other sites

In almost all cases, yes -- use the latest version of CubeCart 6.

However, we have seen many, many store owners having painted themselves into a corner with essential modifications to CubeCart 4 that cannot be ported to CubeCart 5/6.

Being stuck at a very old version of CubeCart but also having updated the version of PHP has historically caused a number of code incompatibilities.

So, even if you apply the few specific fixes that remove the license checks, PHP 7 (for example) is still going to complain about other instances of deprecated and removed functionality caused by old code.

Link to post
Share on other sites

Examine the file ini.inc.php. There will be a line that indicates the exact version of CubeCart being used.

Please download the latest package of the CC4 or CC5 family - according to the version being used. From that package, upload and replace only these files: admin.php and index.php. This will bypass using the ionCube encoded files that perform the licensure checks.

Link to post
Share on other sites


done as you suggested now this:

Warning: mysqli::__construct(): The server requested authentication method unknown to the client [mysql_old_password] in /home/cephas/public_html/classes/db/mysqli.class.php on line 22

Warning: mysqli::__construct(): (HY000/2054): The server requested authentication method unknown to the client in /home/cephas/public_html/classes/db/mysqli.class.php on line 22

Fatal error: The server requested authentication method unknown to the client in /home/cephas/public_html/classes/db/mysqli.class.php on line 24

thanks for all your help

will i need to enter db details here in mysqli.class.php


        $this->_db_connect_id = new mysqli($config['dbhost'], $config['dbusername'], $config['dbpassword'], $config['dbdatabase']);
        if ($this->_db_connect_id->connect_error) {
            trigger_error($this->_db_connect_id->connect_error, E_USER_ERROR);

Link to post
Share on other sites

Someone who is much more familiar with accessing database servers will be on the forums shortly.

A search on that phrase suggests that it is an incompatibility between MySQL 8 and PHP 7. Such that MySQL 8 has set as default a method that needs to be changed in order to use a password.

Link to post
Share on other sites
2 hours ago, bsmither said:

That combination of versions have not been known to have any problems at all.


2 hours ago, andrew davies said:

cubecart v 5.2.2

php 5.6.4

mysql 5.5.62(governed by server)

You are running an extremely old version of CubeCart on an ancient and unsupported (for nearly a year with know security issues) version of PHP and using an even older version of MySQL (as a minimum you should be using 5.6 MySQL). I would suggest looking for a solution that provides an up to date hosting environment and also update your CubeCart version to 6.2.6 unless you have pressing need (ie massive customisation of core code) to stay on this version


Link to post
Share on other sites

latest errors : Warning: mysqli::mysqli(): (HY000/1045): Access denied for user 'cephas_ccrt1'@'localhost' (using password: YES) in /home/cephas/public_html/classes/db/mysqli.class.php on line 22

Fatal error: Access denied for user 'cephas_ccrt1'@'localhost' (using password: YES) in /home/cephas/public_html/classes/db/mysqli.class.php on line 24

Link to post
Share on other sites

site being migrated to server with latest mysql to see if that will give me access

4 minutes ago, havenswift-hosting said:

You have the database login details incorrectly entered in the global.inc.php file - you really shouldnt be advertising what your DB username is either !

once i get access all names will be changed


Link to post
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.

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