Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : pre_upgrade hook ioncube load extension



Threaded Mode | Print  

 pre_upgrade hook ioncube load extension (3 Replies, Read 3772 times)
sparek
Group: Member
Post Group: Working Newbie
Posts: 74
Status:
Is Ioncube not a recognized extension in $__hooks['loaded_extension']

Trying to do a software upgrade and Softaculous is complaining about Ioncube not being installed.  I just want to create a hook to trick Softaculous into believing that Ioncube is installed.

But the code:

PHP Code

 function __pre_upgrade($installation){
        global 
$soft$software$globals$__hooks;
        
$__hooks['loaded_extension'] = array('ioncube');




Doesn't appear to work.

I've tried every derivation of ioncube:
PHP Code

 array('ioncube') array('ionCube') array('Ioncube') array('IonCube') array('ionCube Loader') array('ioncube loader'

but none seem to work.

Is there a list of proper extension names to pass in the array to $__hooks['loaded_extension']?
IP: --   

pre_upgrade hook ioncube load extension
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5652
Status:
Hi,

Can you please try :
$__hooks['loaded_extension'][] = 'ioncube_loader';

Also if you can open a support ticket with us we can try to find out why Softaculous is unable to determine the extension if it is already loaded.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

pre_upgrade hook ioncube load extension
sparek
Group: Member
Post Group: Working Newbie
Posts: 74
Status:
Thanks!  That worked.

How does Softaculous determine what PHP version an account is using?

The alternative in this situation was to set the default PHP version to PHP 7.4.  If the default PHP version is set to PHP 8.0 - which has no Ioncube Loader, then the upgrade fails.

But the account is using PHP 7.4 so Ioncube Loader was available.

Honestly I'm not really that concerned in figuring out why.  The end-user will figure it out soon enough if they upgrade WHMCS using a PHP version that does not have or does not have installed the Ioncube Loaders.
IP: --   

pre_upgrade hook ioncube load extension
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5652
Status:
Hi,

Sorry for the delay in response.

Can you open a support ticket with us so we can check the issue in detail and find the root cause :
https://softaculous.deskuss.com/open.php

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 27, 2024, 9:50 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.024