@ITS
posted this
09 October 2023
So... the "Shortcodes" PHP Errors was not new... in Joomla with PHP 8.x and now in Wordpress with "Shortcodes Effects" in PHP 8.x
Again, please bring a fix for this !!!
Or can any Developer help ?
I have a fix for the shortcodes in joomla but wich edit must i make in this Line for shortcodes-effects.php in WP ?
Error Code:
Got error 'PHP message: PHP Warning: Trying to access array offset on value of type null in /home/users/xy/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/xy/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/xy/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/xy/www/xxx/wp-content/plugins/themler-core/shortcodes/shortcodes-effects.php on line 302', referer:
The Error is in Line 291 and 302
if ($item['info']['type'] === ShortcodesEffects::HTML_EFFECT) {
if (strpos($item['info']['className'], $name) === 0) {
Here also Line 288 to 308
private static function _stackHasHtmlEffect($item) {
do {
$item = self::_stackPrevControl($item);
if ($item['info']['type'] === ShortcodesEffects::HTML_EFFECT) {
return true;
}
} while ($item && $item['info']['type'] !== ShortcodesEffects::CONTROL);
return false;
}
private static function stack_get_effect_name($item, $name) {
do {
$item = self::_stackPrevControl($item);
if (strpos($item['info']['className'], $name) === 0) {
return $item;
}
} while ($item && $item['info']['type'] !== ShortcodesEffects::CONTROL);
return false;
}
So... the "Shortcodes" PHP Errors was not new... in Joomla with PHP 8.x and now in Wordpress with "Shortcodes Effects" in PHP 8.x
Again, please bring a fix for this !!!
Or can any Developer help ?
I have a fix for the shortcodes in joomla but wich edit must i make in this Line for shortcodes-effects.php in WP ?
Error Code:
Got error 'PHP message: PHP Warning: Trying to access array offset on value of type null in /home/users/xy/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/xy/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/xy/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/xy/www/xxx/wp-content/plugins/themler-core/shortcodes/shortcodes-effects.php on line 302', referer:
The Error is in Line 291 and 302
if ($item['info']['type'] === ShortcodesEffects::HTML_EFFECT) {
if (strpos($item['info']['className'], $name) === 0) {
Here also Line 288 to 308
private static function _stackHasHtmlEffect($item) {
do {
$item = self::_stackPrevControl($item);
if ($item['info']['type'] === ShortcodesEffects::HTML_EFFECT) {
return true;
}
} while ($item && $item['info']['type'] !== ShortcodesEffects::CONTROL);
return false;
}
private static function stack_get_effect_name($item, $name) {
do {
$item = self::_stackPrevControl($item);
if (strpos($item['info']['className'], $name) === 0) {
return $item;
}
} while ($item && $item['info']['type'] !== ShortcodesEffects::CONTROL);
return false;
}
Last edited 09 October 2023 by @ITS