Deprecated: Joomla\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/vendor/joomla/input/src/Input.php on line 41

Deprecated: Return type of Joomla\Input\Input::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /homepages/13/d380392445/htdocs/Jlive/libraries/vendor/joomla/input/src/Input.php on line 170

Deprecated: Joomla\CMS\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Input/Input.php on line 31

Deprecated: Joomla\CMS\Input\Cookie implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Input/Cookie.php on line 21

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Uri/Uri.php on line 141
Column 'change_by' cannot be null - Page 2 - Macrotone Forum

Unknown Error 8192: KunenaControllerApplicationDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in libraries/kunena/controller/application/display.php on line 21


Unknown Error 8192: ComponentKunenaControllerWidgetAnnouncementDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/widget/announcement/display.php on line 18


Unknown Error 8192: ComponentKunenaControllerTopicItemDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/display.php on line 25


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/forum/category/category.php on line 415


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/route/route.php on line 437


Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Date/Date.php on line 112

Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/bbcode/bbcode.php on line 107

Column 'change_by' cannot be null


Unknown Error 8192: ComponentKunenaControllerTopicItemActionsDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/actions/display.php on line 23


Unknown Error 8192: ComponentKunenaControllerTopicPollDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/poll/display.php on line 21


Unknown Error 8192: ComponentKunenaControllerTopicItemMessageDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/message/display.php on line 23

8 years 9 months ago #7 by moose999

Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022

Apologies if that came over as a criticism, you must certainly protect against SQL injection and PHP cross site scripting, and I should have submitted the code using the Attachments feature provided to prevent this. Thanks for un-blocking me!

Thanks for the updated file, I am afraid I am still getting an error. I will try the extension on another site before asking you to spend more time, as it could easily be a mistake my end.

The error [with some removal] is:
Column 'change_by' cannot be null =UPDATE jos_content SET `checked_out` = 685 , `checked_out_time` = '2015-07-09 17:38:49' WHERE `id` = '18'

Cheers,
Justin

Unknown Error 8192: ComponentKunenaControllerMessageItemActionsDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/message/item/actions/display.php on line 25

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

8 years 9 months ago #8 by geoffc

Unknown Error 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2263

No problem with criticism and no offence taken.
Re that error, it might be that that it is the 'old' trigger that is being invoked still. I specifically checked that situation, and the error is generated when the article is initially being checked out.

Look at the generated trigger and around lines 25 the code should be similar to:
IF ( cexists ) THEN 
           SELECT IFNULL(modified_by, 0) INTO changedby FROM ..(trimmed) ........;
           SELECT CAST(changedby AS UNSIGNED) INTO chkint; 
           IF ( chkint ) THEN 
           SELECT chkint INTO changedby; 
          ELSE 
              SELECT superid INTO changedby;
          END IF;

If it is anything else then it is the 'old' generated code.

Regards
Geoff

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

8 years 9 months ago #9 by geoffc
I have double checked the code I attached earlier and its working fine at my end. I must check whether you removed the existing triggers and recreated them after you installed the file? If you omitted this last step then it would explain why you saw the error again.

I also have had a good look at that code again and have decided that some of the work can be taken out of the trigger code and done before the trigger is created. I have modified the helper file even more and attach the latest version. All three trigger types are modified, so as before, replace the same file, and remove all existing triggers and recreate and rerun your tests.

Seems like the problem introduced itself in the 1.0.2 update, since 1.0.1 did not exhibit the problem. I need to do some more tests, but all being well I will release an update after I have made a few more minor tweaks.

Regards
Geoff
Attachments:

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

8 years 9 months ago #10 by moose999
That all works now!

Many thanks for all your help, and for a great free component.

Cheers!!
Justin
The following user(s) said Thank You: geoffc

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

8 years 9 months ago #11 by geoffc
Thank you for letting me know. I will mark this topic as resolved.

I will release an updated version (1.1.0) in a few days incorporating the fix and a few other changes. I have modified the generated trigger code and simplified it, by doing some of the work in the trigger generation rather than when the trigger runs, also speeding up trigger in the process. This will also require the triggers to be regenerated after it is installed/updated to get the benefit.

I have also added the ability to download the change records to a file.

Regards
Geoff

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

Time to create page: 0.160 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries