Skip to Content Skip to Menu

[#4792] Auto Action 6.0 deletes code on installation

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
10 years 3 weeks ago - 10 years 2 weeks ago #250671 by KatoKalin
Installing AutoActions 6.0 produce following error:
Code:
Unknown column 'format' in 'field list' SQL=UPDATE `#__comprofiler_plugin_autoactions` SET `title` = 'Update checkbox', `description` = 'Update checkbox', `type` = 'code', `trigger` = 'onAfterUserUpdate,onAfterUserRegistration', `object` = '0', `variable` = '1', `access` = '-1', `conditions` = '[{\"field\":\"\",\"operator\":\"6\",\"value\":\"\",\"translate\":null}]', `field` = NULL, `operator` = NULL, `value` = NULL, `translate` = NULL, `exclude` = NULL, `debug` = NULL, `published` = '1', `ordering` = '4', `params` = '{\"exclude\":\"\",\"debug\":\"0\",\"format\":null,\"code\":[{\"method\":\"PHP1\",\"code\":\"\\/\\/Declarations\\\\r\\\\nglobal $_CB_framework, $_CB_database\",\"pluginurls\":\"\",\"plugins\":\"\",\"url\":\"\",\"return\":\"SILENT\"}]}', `format` = NULL WHERE `id` = '1'

After that CB2.0 shows the the configured Auto Actions in the list, but when you open them the code blocks are empty. The code has gone.
Last edit: 10 years 2 weeks ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48480
  • Thanks: 8283
  • Karma: 1443
10 years 3 weeks ago #250724 by krileon
Replied by krileon on topic Auto Action 6.0 deletes code on installation
Was able to fix the cause of the issue. We're working on preparing a nightly of CB Auto Actions to solve the problem.


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.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48480
  • Thanks: 8283
  • Karma: 1443
10 years 3 weeks ago - 10 years 3 weeks ago #250727 by krileon
Replied by krileon on topic Auto Action 6.0 deletes code on installation
CB Auto Actions night build has been released to address this issue. Please note it likely won't re-migrate existing broken installs. You should be able to copy over your old CB Auto Actions table if still available then install latest nightly to start the migration again.


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.
Last edit: 10 years 3 weeks ago by krileon.

Please Log in or Create an account to join the conversation.

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
10 years 3 weeks ago - 10 years 3 weeks ago #250805 by KatoKalin
Replied by KatoKalin on topic Auto Action 6.0 deletes code on installation
Not yet resolve. Now I have only partial code in the code box (JS inline, did not investiage further).

Same with a PHP function, only first line of code has been copied to the new code box.
Last edit: 10 years 3 weeks ago by KatoKalin.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48480
  • Thanks: 8283
  • Karma: 1443
10 years 3 weeks ago #250822 by krileon
Replied by krileon on topic Auto Action 6.0 deletes code on installation
I wasn't able to duplicate your issue. Is this happening with all your code actions? The B/C ini string usage in our params parser maybe picking up your linebreaks in your code and treating them as a new ini entry, which would explain why only first line is migrating. Try removing your linebreaks and see if it migrates fine.


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.

Please Log in or Create an account to join the conversation.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 2 weeks ago #250901 by dotcom22
Replied by dotcom22 on topic Auto Action 6.0 deletes code on installation

KatoKalin wrote: Not yet resolve. Now I have only partial code in the code box (JS inline, did not investiage further).

Same with a PHP function, only first line of code has been copied to the new code box.



I have same problem of you. The fact to install CB Auto Actions night build solved your problem ? About Action code, have you removed line break as suggested by Kyle ?

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum