[SOLVED] Error running code segment with Auto Actions 6.2.2 latest nightly

9 years 1 month ago - 9 years 1 month ago #260312 by smhaller
Hi all,

during my tests Auto Actions plugin was running nice with the function that I use.
These days I decided to finally upgrade the live site to new CB and therefore new plugins.

Now I get a:
Fatal error: Call to a member function get() on a non-object in <span>/</span>home<span>/</span>swissme5/www/joomla/components/com_comprofiler/plugin/user/plug_cbautoactions/models/code.php on line 118

The code segment grabs some data from DB (After Frontend Profile Update)
and writes it to a temp file using fputcsv.

Regards,
Stefan
Attachments:

Please Log in to join the conversation.

9 years 1 month ago #260348 by krileon
Are you overriding $row? It's the trigger row object. If your code overrides it that could be the cause of your issue. Aside from that I can't see a reason for this to happen. If you're using eval method it's going to be able to modify the local variables. You may want to use the create_function usage to avoid this as your code will be contained in an anonymous function with no access outside of it self.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: smhaller

Please Log in to join the conversation.

9 years 1 month ago #260351 by smhaller
Hi krileon,

krileon wrote: Are you overriding $row? It's the trigger row object.


hmm... might be. Will check and update asap.

thanks
Stefan

Please Log in to join the conversation.

9 years 1 month ago #260354 by smhaller
Yep, changing the varibale to something else did the trick.

Thanks again,
Stefan

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.184 seconds

Facebook Twitter LinkedIn