ChronoForm v4 Fatal Error

petunia 27 Feb, 2013
Hello, I was creating a new form for submit content but this error appears when click on frontend view

Fatal error: Cannot use object of type stdClass as array in /public_html/administrator/components/com_chronoforms/form_actions/load_user_info_gh/load_user_info_gh.php on line 117

also my others forms stop working now and show that message.

I use:
ChronoForm 4.0 RC3.5.2
Joomla 2.5.9
php 5.2.17

What can i do?

Thanks!
GreyHead 27 Feb, 2013
Hi petunia,

I suggest that you delete the folder /public_html/administrator/components/com_chronoforms/form_actions/load_user_info_gh/ This will remove the action.

I'll have a look at the code but this hasn't been reported before so it may be because you are on PHP 5.2 rather than 5.3 or 5.4.

Bob
petunia 27 Feb, 2013
I check and I have the folder load_user_info_gh

Just delete the event Load User Info [GH] in my forms and everything is working now.

Since I am on Shared Host I can´t upgrade my php version 😟 but is strange that before it was working but I start to create a submitcontent form and it crash.

Thanks for your help.
GreyHead 28 Feb, 2013
Hi Petunia,

I'm not sure why it would suddenly crash like that unless you were using the Get User Info action in your form.

Check with your web host about upgrading PHP - 5.2 is now well out of date.

Bob
foivos 02 Mar, 2013
Hello
I'm facing the same problem!!!
I'm using chronoforms 4 RC3.5.1 with success for about 5 months with no problems until yesterday.
This happened suddenly and i didn't change anything!!!
I restore to previous backups and nothing changes!!!

The strange is that the form for some users working and for others not?
When i disable the load user info it shows the form but at the submit botton shows fatal error....

Is any idea how to fix this?


thank you very much
GreyHead 02 Mar, 2013
Hi foivos,

Exactly what error do you get?

What version of PHP is your site using?

Bob
foivos 02 Mar, 2013
thank you for your reply

Fatal error: Cannot use object of type JObject as array in /public_html/administrator/components/com_chronoforms/form_actions/load_user_info_gh/load_user_info_gh.php on line 117

PHP version 5.3.10

From my server company said that they didn't make any changes.
I think there is a conflict with k2 because if a user has already upload an article can't use the form (it receives this fatal error).
foivos 04 Mar, 2013
Hello again!!
After many tries to solve my problem and with no background to php i delete the line 117 and my form works again like a charm!!! i tested it many times with different user.
I delete the next line

$user['cfu_profile'][$f] = $data['profile.'.$f]->profile_value;

So my next question is if this brings about a new problem to my form?

Thank you
GreyHead 05 Mar, 2013
Hi foivos,

It will only cause a problem if you are using the User Profiles in Joomla! 2.5+

Bob
foivos 05 Mar, 2013
I'm not using user profile plugin so i think i'm ok!!!

Thank you for your reply.
GreyHead 06 Mar, 2013
Hi,

I couldn't replicate the Fatal Error - running on Joomla! 3.0.3 with PHP 5.3.5 :-(

I did find a related problem if the User Profile plug-in is not enabled. Hopefully this will also fix the Fatal Error in some cases.

The updated file is on my site here

Bob
foivos 11 Mar, 2013
Ok i tested and it seems to be working !

Thank you very much for your help!!
This topic is locked and no more replies can be posted.