blakey87 wrote:
I dont see any reason why this wouldnt work with php 5
I noticed this post by another member...
[quote]
dynamodan wrote:
rockandchelle,
This code is not PHP5 compatible:
| Code: |
if ($cbinfo->$fbConfig['cb_gender_field'] != '') {
|
It returns an error:
| Code: |
Fatal error: Cannot access empty property in /home/qsobr3/public_html/components/com_fireboard/template/default/view.php on line 531
|
It's the $cbinfo->$fbConfig construct that seems to be syntactically incorrect in PHP5. I suspect that it was a syntax that was slated for deprecation in an older version of php, but was still supported in PHP4. Well, the PHP folks evidently rolled it off the backend, because when I switched my server to use PHP5 to handle everything, it broke.
There in view.php there are many calls to the $fbConfig from line 531 to 578 that need to be fixed. PHP4 supports the non '$'-preceded calls constructed like this: $cbinfo->fbConfig[...
Thanks and great mod by the way.
Dan[/quote]
I get the error as well using PHP5. I have no idea how to convert the original mod code over to make it PHP5 compatible though.