PHP errors. Blacklisted. Cant use CB for Joomla! 1.5?

Status
Not open for further replies.

Noodles8

New Member
Messages
39
Reaction score
0
Points
0
I'm getting a blank page when trying to view the configuration page for CB 1.1.

I've checked the error logs and it tries to run a blacklist command exec().

There has been a work around for this issue by replacing lines of code in some of the admin files. But to no avail, has this worked for me.

I also found another thread on this issue here.

http://forums.x10hosting.com/level-...on-3-php-configuration-community-builder.html

I have also tried commenting the exec() command(suggested in above thread), but this does not work either.

Not sure what to do from here, other than this is a PHP issue server side related.
Edit:
Should I just ask to be upgraded to PHP v3? What are the odds of that happening as there a comment of "rarely" are in there. What can I do if I'm unable to upgrade?
 
Last edited:

Noodles8

New Member
Messages
39
Reaction score
0
Points
0
Two exec commands in this file. Where the errors are generated.

The previous "fix" was related to admin files trying to access the file that contains the exec commands. That did not work for me though.
------------------------------------


function testIM(){
if($this->cbIsExecDisabled()){ //CB_FIXES:
return false; // exec() is disabled, so give up
}
@exec('convert -version', $output, $status);
if(!$status){
if(preg_match("/imagemagick[ \t]+([0-9\.]+)/i",$output[0],$matches))
return $matches[0];
}
unset($output, $status);
}
function testNetPBM(){
if($this->cbIsExecDisabled()){ //CB_FIXES:
return false; // exec() is disabled, so give up
}
@exec('jpegtopnm -version 2>&1', $output, $status);
if(!$status){
if(preg_match("/netpbm[ \t]+([0-9\.]+)/i",$output[0],$matches))
return $matches[0];
}
unset($output, $status);
}
Edit:
I've put an application in for the PHP v3 upgrade
Edit:
Can someone get back to me please? As I cant move on until I get this CB issue resolved.
 
Last edited:

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Replace that code with the following and see if it works.

PHP:
function testIM(){
/* if($this->cbIsExecDisabled()){ //CB_FIXES:
return false; // exec() is disabled, so give up
}
@exec('convert -version', $output, $status);
if(!$status){
if(preg_match("/imagemagick[ \t]+([0-9\.]+)/i",$output[0],$matches))
return $matches[0];
}
unset($output, $status); */
}
function testNetPBM(){
/* if($this->cbIsExecDisabled()){ //CB_FIXES:
return false; // exec() is disabled, so give up
}
@exec('jpegtopnm -version 2>&1', $output, $status);
if(!$status){
if(preg_match("/netpbm[ \t]+([0-9\.]+)/i",$output[0],$matches))
return $matches[0];
}
unset($output, $status); */
}
 

Noodles8

New Member
Messages
39
Reaction score
0
Points
0
With the commented code I get this error now

Parse error: syntax error, unexpected T_UNSET, expecting T_FUNCTION in /"mydirectory"/imgToolbox.class.php on line 668
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Put in an application for PHP v3 and in the reason box link to this post.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
I just approved it, it should be upgraded on the server in the next few hours and your script will work.
 

Noodles8

New Member
Messages
39
Reaction score
0
Points
0
Alright. Thank you for your help. I really appreciate it. Will I receive an e-mail when the upgrade has completed?
Edit:
Nevermind. I got the confirmation of accepted application. :) I will post when its done and if all work well.

Thanks again Chris and Brandon for helping me out!
Edit:
The page is now able to be viewed! Thanks a lot guys. :)
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
No problem, thanks for using x10Hosting.
 
Status
Not open for further replies.
Top