Register |
Your Cart is currently empty.
Home > Forum
Welcome, Guest

IonCube loading bug with php5.2.6, half solved
(1 viewing) (1) Guest

Dear Customers,

Feel free to submit requests if you have any questions or need assistance.

Before submitting a support request, please pay attention to the description of the corresponding product and frequently asked questions. Answers you are looking for may already be there.
When submitting a request, please include as many details on the problem as you can. This will help us understand the essence and provide you with a helpful solution.
For more information on our support conditions, view JoomPlace support policy.
THANKS FOR YOUR PATIENCE!
  • Page:
  • 1

TOPIC: IonCube loading bug with php5.2.6, half solved

IonCube loading bug with php5.2.6, half solved 3 years ago #10477

  • Jacques V
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
After installing SMF bridge and JoomPlace License Manager on my beta production site (J1.5.9, php5.2.6), I went to components settings, and got messages requiring ionCube Loader to be installed. Which it was yet.


JoomPlace License Manager issue
After some investigations, I found that, in ef_lmanager.php, you call the IonCube loader thru :

(line 175) @dl($__ln);


which is no more permitted since php5.2.5

Same in admin.ef_manager.php
(line 341) @dl($__ln);


dl shall be used this way dl('name-of-module-to-load') but no more thru a variable containing a path.

So, you'll have to use something like that:


$variable='ioncube_loader_dar_yourversion_your extension';
.../...
@dl($variable);
 


As an example, for me, working on Apple's Xserve with php compiled in 32-bit,I used
@dl('ioncube_loader_dar_5.2.so');

whih is a rather rude hack (should better rebuild the $var depending on any used ionCube...), but at least License Manager seems to work since I was able to generate the license for my bridge .


SMF bridge issue
The same now-forbidden use of dl directive occurs in the obfuscated files of SMF Bridge.
Instead of
<?php //0035e
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;
}
}
}
[color=#FF0000]@dl($__ln);[/color]
}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);
?>

I used the same hack as previously:
<?php //0035e
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('ioncube_loader_dar_5.2.so');
}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);
?>


This way, ionCube loads,no error message and I have access to back-end.

However, only the tabs appears on the back-end panel, with no settings available, which is maybe related to the "//0035e" on the first line of the php code. This seems to be a checksum which is now plain wrong

So, what can I do?


JoomlaQuizz DeLuxe issue ?
I plan to buy JoomlaQuizz DeLuxe in a matters of days, in fact as soon as the bridge issue is solved . In case the same issue is to be expected, can you fix it in advance since php5.2.6 will be used? Or am I wrong?

Jacques

Re:IonCube loading bug with php5.2.6, half solved 3 years ago #10480

  • Ann
  • OFFLINE
  • Moderator
  • Posts: 2601
  • Karma: 29
Hi!
Here is what can be done with this respect:
first of all, you shouldn't modify the encoded files as the 'File is Corrupt' error may pop up.

next, it's better do it so that you won't need to write
@dl('ioncube_loader_dar_5.2.so');
, so that ioncube was already loaded (you need to write the needed lines in php.ini)

If you can't do that then you can write this line
@dl('ioncube_loader_dar_5.2.so');
into index.php
(if you don't want the ioncube to load all the time you should write smth like
if ($option == 'com_jvb_bridge') @dl('ioncube_loader_dar_5.2.so');
)

and there is one more way:
we can code the component specially for you where the standard title (the one with the line
@dl($__ln)

we'll replace with modified (with your line
@dl('ioncube_loader_dar_5.2.so'
); or you can send us the whole title).

kind regards!
JoomPlace.com, JoomlaLMS.com
Tech. Support

Re:IonCube loading bug with php5.2.6, half solved 3 years ago #10486

  • Jacques V
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Solutions by hacking Joomla didn't work. Anyway, I got the same issue with another ionCube encoded component, found the bug, contacted him, then its developper contacted the ionCube company; they sent him the following fixed title that works in any case as long as I tested it.
<?php //003ac
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);
 
?>


So could you code my SMF Bridge with this title?

BTW, I do think it's not very professional from the ionCube company to know about an issue and not responding by updating all their customers' coders in the following days... just my 2 cents

As for the Joomla Quizz De Luxe, and SurveyForce Deluxe I just bought, I expect the same issue to raise. So, would you be kind enough as to mail me immediately the updated files?

Best Regards,

Jacques

Re:IonCube loading bug with php5.2.6, half solved 3 years ago #10488

  • Ann
  • OFFLINE
  • Moderator
  • Posts: 2601
  • Karma: 29
Hi Jacques!
Please redownload and reinstall the modified archive from your members area (the Download link), we've modified it according to your useful info (THANX!!! ); if everything's ok there, we'll code all other component respectively.
Let us know how it goes.
kind regards!
JoomPlace.com, JoomlaLMS.com
Tech. Support

Re:IonCube loading bug with php5.2.6, half solved 3 years ago #10508

  • Jacques V
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Sorry, I couldn't experiment earlier since people were filling the quizzes, we were working on php4.4.9 ...

The downloaded new version of SMF Bridge, when working on php 5.2.6 gives the error
Site error: the file /xxx/xxx/xxx/administrator/components/com_smf_bridge/component.legacy.php requires the ionCube PHP Loader ioncube_loader_dar_5.2.so to be installed by the site administrator.
 

However, I didn't see any modification in this file's title. So, no wonder it doesn't work better on php5.2.6

Please redownload and reinstall the modified archive from your members area (the Download link), we've modified it according to your useful info (THANX!!! ); if everything's ok there, we'll code all other component


Which component is modified ?
Last Edit: 3 years ago by Jacques V.

Re:IonCube loading bug with php5.2.6, half solved 3 years ago #10509

  • Ann
  • OFFLINE
  • Moderator
  • Posts: 2601
  • Karma: 29
Hi!
The SMF bridge was modified,
the loaders version differ, you should load ioncube_loader_dar_5.2.so, then the error should be gone.

Have you tried that?
regards!
JoomPlace.com, JoomlaLMS.com
Tech. Support

Re:IonCube loading bug with php5.2.6, half solved 3 years ago #10530

  • Jacques V
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Yes, I did, I re-downloaded again, and got same result as in my previous message.
But the loaders versions are exactly the same, I compared them with previous
version (dated 25/11) in component.legacy.php
As I said previously no wonder I got the same result.

Re:IonCube loading bug with php5.2.6, half solved 3 years ago #10536

  • Ann
  • OFFLINE
  • Moderator
  • Posts: 2601
  • Karma: 29
Hi!
We've now re-laid the archive with two files modified today:
component.lib.php and component.legacy.php,

could you pls redownload, reinstall, and let us know if the errors are gone now?
kind regards!
JoomPlace.com, JoomlaLMS.com
Tech. Support

Re:IonCube loading bug with php5.2.6, half solved 3 years ago #10537

  • Jacques V
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Yes, it works on php5.2.6 and php4.4.9 !

Waiting for my other components now !

Best Regards,
Jacques

Re:IonCube loading bug with php5.2.6, half solved 3 years ago #10547

  • Ann
  • OFFLINE
  • Moderator
  • Posts: 2601
  • Karma: 29
Hi Jacques!
Please redownload and reinstall the quiz and survey software,
should work fine as well. Report if anything.

kind regards!
JoomPlace.com, JoomlaLMS.com
Tech. Support

Re:IonCube loading bug with php5.2.6, half solved 3 years ago #10550

  • Jacques V
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Karma: 0
Everything works! Fine!

Des Regards,
Jacques

Re:IonCube loading bug with php5.2.6, half solved 2 years, 7 months ago #11170

Im facing teh same problem in joomla quiz kindly suggest from where can i download the latest version which doesnt need ioncube to be reloaded

Re:IonCube loading bug with php5.2.6, half solved 2 years, 7 months ago #11177

  • Ann
  • OFFLINE
  • Moderator
  • Posts: 2601
  • Karma: 29
Hi!
Could you please provide us with the temporary admin and FTP accesses to your site?
This seems a different issue.
You can send them to support@joomplace.com together with this thread's link. We'll check it out.
Kind regards!
JoomPlace.com, JoomlaLMS.com
Tech. Support
  • Page:
  • 1
Moderators: Maria_B
Time to create page: 1.10 seconds