A Day in the Life of a Developer
14 Apr
Currently BackendPro 0.6.1 dosn’t support PHP5 officaly but there is some things you can do to patch it so it will work. When trying to run BackendPro on PHP5 you will most likely be hit by the following errors.
Assigning by Reference in Loader.php line 414
Message: Assigning the return value of new by reference is deprecated
Filename: libraries/Loader.php
Line Number: 414
This can be fixed by opening application/libraries/Loader.php and going to line 414. Replace the line
$CI->dbutil =& new $class();
with the following
$CI->dbutil = new $class();
Function ereg_replace has been deprecated in libraries/Preference_form.php
Find line 100 and the code:
$this->field[$field]['label'] = ucwords(ereg_replace(‘_’,’ ‘,$field));
Replace the line with the following
$this->field[$field]['label'] = ucwords(preg_replace(‘/_/’,’ ‘,$field));
Call-time pass-by-reference has been deprecated in access_control/resources.php line 42
Find line 43 and the code:
$offset = $this->access_control_model->buildPrettyOffset(&$obj,$tree);
Replace the line with the following:
$offset = $this->access_control_model->buildPrettyOffset($obj,$tree);
22 Responses for "Patch BackendPro 0.6.1 for use with PHP 5"
I want to use CAPTCHA but not reCAPTCHA , how can i replace it with my own CAPTCHA ?
thanks.
[...] This post was mentioned on Twitter by Codeignitee. Codeignitee said: Patch BackendPro 0.6.1 for use with PHP 5 http://ow.ly/1yGPe #codeigniter [...]
I’m facing another error when accessing the resource from the access control menu
A PHP Error was encountered
Severity: 8192
Message: Call-time pass-by-reference has been deprecated
Filename: access_control/resources.php
Line Number: 42
is that also related to php 5 ?
Yes that is php5 related I will update the post.
I found a bug in preference_form.php fix:
$this->field[$field]['label'] = ucwords(preg_replace(‘/_/’,’ ‘,$field));
must be
$this->field[$field]['label'] = ucwords(preg_replace(‘/_/’,’ ‘,$field));
to avoid parse error must modify quotation marks
Sorry for my english :$
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\voltinter\modules\preferences\libraries\Preference_form.php on line 100
i have change it ,
$this->field[$field]['label'] = ucwords(preg_replace(‘/_/’,’ ‘,$field));
but still error… can u tell me how?
this is wired, did all the changes, and it gives me
Unable to load the requested class: status
any solutions?
same with budi
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\voltinter\modules\preferences\libraries\Preference_form.php on line 100
any solutions?
should reply with $this->field[$field]['label'] = ucwords(preg_replace(‘/_/’,’ ‘,$field));
Function ereg_replace has been deprecated in libraries/Preference_form.php
Find line 100 and the code:
$this->field[$field]['label'] = ucwords(ereg_replace(‘_’,’ ‘,$field));
Replace the line with the following
$this->field[$field]['label'] = ucwords(preg_replace(‘/_/’,’ ‘,$field));
change to
$this->field[$field]['label'] = ucwords(preg_replace(‘/_/’,’ ‘,$field));
will be fine . but i don’t know what would called later
Function ereg_replace has been deprecated in libraries/Preference_form.php
Find line 100 and the code:
$this->field[$field]['label'] = ucwords(preg_replace(‘/_/’,’ ‘,$field));
will be fine.
I have mentioned in the post above that ereg_replace is deprecated, thank you anyway for the input.
Hello Adam, thank you for your work on this I am learning a lot just following your code. However, I am unable to run 0.6.1 using PHP 5.3.1 receiving an error “Unable to load requested class: status”.
Your fixes reference:
1. libraries/Preference_form.php, I found this file in modules/preferences/libraries.
2. access_control/resources.php, I can not find this file at all.
In addition, the online demo threw an error “Undefined index: Option” for filename mdoules/base_model.php line 120 upon clicking “Save” in “System > Settings > Member Settings”.
Thank you again all your hard work!
FYI:
acces_control/resources.php
refer to
modules/auth/views/admin/access_control/resources.php
System >> Setting give me a blank page.. any idea?
i’m looking for a BackEndPro version that works with the current version of CodeIgniter (2.0.1) or 2.0.0 will be ok
me too looking for a BackEndPro version that works with the current version of CodeIgniter (2.0.1)
this is wired, did all the changes, and it gives me
Unable to load the requested class: status
any solutions?
I wonder if this source work really
I got a problem when configuring backend pro with codeigniter 2.0.2 what is the solution please give the full instruction.As soon as possible.
Hi, I’ve just installed the BackendPro. And it is not run normal.
when I finished the code. It could not work. I find out it lost the index.php file. and isn’t is the setup files. is the index.php file be created when the backendPro install? and it doesn’t work…why?
PHP5
After moving application folder out of system directory and successful installing backendpro with ci 1.7.3 it shows me error:
Unable to load the requested class: status
I try it with application folder in system and it works great.
Any solutions to move application folder out of system?
If you get a blank screen on the settings area it is because
you need to change the backquotes you copied and pasted into the php code. The must be single quotes,
not backticks
Leave a reply