@ITS
posted this
16 October 2023
Dear all,
I have fixed the errors! Thanks to ChatGPT. The errors came from two files, which I corrected with the given instructions from ChatGPT. You can find those in the attachment. This is what ChatGPT gave me back:
To resolve the error related to PHP 8, where a required parameter $tag
follows an optional parameter $imageHtml, you can apply the following
steps:
Swap the positions of the required and optional parameters: Update the
function or method so that the required parameter $tag comes before
the optional parameter $imageHtml. For example, if the original
function declaration looks like this:
function my_function($imageHtml = '', $tag)
You can update it to:
function my_function($tag, $imageHtml = '')
Be sure to also update any function calls to pass the arguments in the
correct order.
You have to download the ZIP which is attached here in my post and extract the two PHP files and upload the to you plugins\themler-core\shortcodes folder in WordPress and overwrite the two files.
Hope this helps anyone.
So for Themler developer, very easy fix!
@Pascal Mariany
Hey... i try your customize PHP Files on WP Page.
But again Errors when use your customize shortcodes-effects.php
the shortcodes.php cant use, crash the layout - but this brings not error - only shortcode-effects is problem with WP.
Errors/Warnings on Line 291 and 302
Got error 'PHP message: PHP Warning: Trying to access array offset on value of type null in /home/users/xx/www/xxx/wp-content/plugins/themler-core/shortcodes/shortcodes-effects.php on line 291; PHP message: PHP Warning: Trying to access array offset on value of type null in /home/users/xx/www/xxx/wp-content/plugins/themler-core/shortcodes/shortcodes-effects.php on line 291; PHP message: PHP Warning: Trying to access array offset on value of type null in /home/users/xx/www/xxx/wp-content/plugins/themler-core/shortcodes/shortcodes-effects.php on line 302; PHP message: PHP Warning: Trying to access array offset on value of type null in /home/users/xx/www/xxx/wp-content/plugins/themler-core/shortcodes/shortcodes-effects.php on line 302
> Dear all,
>
> I have fixed the errors! Thanks to ChatGPT. The errors came from two files, which I corrected with the given instructions from ChatGPT. You can find those in the attachment. This is what ChatGPT gave me back:
>
> > To resolve the error related to PHP 8, where a required parameter $tag
> > follows an optional parameter $imageHtml, you can apply the following
> > steps:
> >
> > Swap the positions of the required and optional parameters: Update the
> > function or method so that the required parameter $tag comes before
> > the optional parameter $imageHtml. For example, if the original
> > function declaration looks like this:
> >
> > function my_function($imageHtml = '', $tag)
> >
> > You can update it to:
> >
> > function my_function($tag, $imageHtml = '')
> >
> > Be sure to also update any function calls to pass the arguments in the
> > correct order.
>
> You have to download the ZIP which is attached here in my post and extract the two PHP files and upload the to you plugins\themler-core\shortcodes folder in WordPress and overwrite the two files.
>
> Hope this helps anyone.
>
> So for Themler developer, very easy fix!
@Pascal Mariany
Hey... i try your customize PHP Files on WP Page.
But again Errors when use your customize shortcodes-effects.php
the shortcodes.php cant use, crash the layout - but this brings not error - only shortcode-effects is problem with WP.
Errors/Warnings on Line 291 and 302
Got error 'PHP message: PHP Warning: Trying to access array offset on value of type null in /home/users/xx/www/xxx/wp-content/plugins/themler-core/shortcodes/shortcodes-effects.php on line 291; PHP message: PHP Warning: Trying to access array offset on value of type null in /home/users/xx/www/xxx/wp-content/plugins/themler-core/shortcodes/shortcodes-effects.php on line 291; PHP message: PHP Warning: Trying to access array offset on value of type null in /home/users/xx/www/xxx/wp-content/plugins/themler-core/shortcodes/shortcodes-effects.php on line 302; PHP message: PHP Warning: Trying to access array offset on value of type null in /home/users/xx/www/xxx/wp-content/plugins/themler-core/shortcodes/shortcodes-effects.php on line 302
Last edited 16 October 2023 by @ITS