Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Hey guys I would extremely appreciate it if someone can help me out with an issue I am having on my Wordpress website after updating to PHP 7.4 (I am not that tech-savvy)

I thought it would be a good idea to update to PHP 7.4 from 7.1 for security reasons, before the update I ensured that all of my plug-ins were updated and my Wordpress was running the latest version.

After the update everything was smooth except for one small section on my home screen.

Imgur: The magic of the Internet[^]

I believe I know the plugin used for this section, it is WPBakery and I do not have the license for it so it is running on version 6.1

I also have the code stating where the problem is: (line 817)

//Process Box
add_shortcode('process', 'process_func');
function process_func($atts, $content = null){
    extract(shortcode_atts(array(
        'shadow'     =>  '',    
        'number'     =>  '',    
        'title'      =>  '',     
        'image'      =>  '',   
        'style'      =>  'style1',   
    ), $atts));
    $img = wp_get_attachment_image_src($image,'full');
    $img = $img[0];
    ob_start(); 
?>


This is what the section of the website looks like in PHP Version 7.2

Imgur: The magic of the Internet[^]

If someone understands the issue here and can explain it I would really appreciate the help! Also let me know if you need more information or context and I will provide it.

What I have tried:

I am not sure how to fix this.
Posted
Updated 19-Feb-21 8:28am

1 solution

I have experienced simialit issues when Upgrading the the latest version of PHP. Luckily I initially stepped back to the previous version, to fix the issue on a temp basis.

I contacted the theme developers, as they needed to be aware of the issue and set up any necessary fixes in their next theme update files.

I recommend you contact your theme developers, who I believe are: wpTerra's Profile | WordPress.org[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900