Call to undefined function vc_build_link()

Home Page Forums Porto | Multi-Purpose & WooCommerce Theme Call to undefined function vc_build_link()

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #4571
    sagaranvekar
    Participant

        Hi,
        Our wordpress website uses Porto theme and we experienced slowness for which we contacted our website host Siteground. They told us that there is something with plugins or theme and later they provided us PHP error log. The log is filled with one repetitive error as below:

        [12-Feb-2024 06:45:15 UTC] PHP Fatal error: Uncaught Error: Call to undefined function vc_build_link() in /home/customer/www/*****.com.au/public_html/wp-content/plugins/porto-functionality/shortcodes/templates/porto_preview_image.php:38
        Stack trace:
        #0 /home/customer/www/*****.com.au/public_html/wp-content/plugins/porto-functionality/shortcodes/porto-shortcodes.php(725): include()
        #1 /home/customer/www/*****.com.au/public_html/wp-includes/shortcodes.php(433): PortoShortcodesClass->{closure}(Array, ”, ‘porto_preview_i…’)
        #2 [internal function]: do_shortcode_tag(Array)
        #3 /home/customer/www/*****.com.au/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(porto_…’, ‘do_shortcode_ta…’, ‘<p>[vc_row][vc_…’)
        #4 /home/customer/www/*****.com.au/public_html/wp-includes/class-wp-hook.php(324): do_shortcode(‘<p>[vc_row][vc_…’)
        #5 /home/customer/www/*****.com.au/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘<p>[vc_row][vc_…’, Array)
        #6 /home/customer/www/*****.com.au/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(117): apply_filters(‘the_content’, ‘[vc_row][vc_col…’)
        #7 /home/customer/www/*****.com.au/public_html/wp-content/plugins/wordpress-seo/src/actions/indexing/abstract-link-indexing-action.php(65): Yoast\WP\SEO\Builders\Indexable_Link_Builder->build(Object(Yoast\WP\SEO\Models\Indexable), ‘[vc_row][vc_col…’)
        #8 /home/customer/www/*****.com.au/public_html/wp-content/plugins/wordpress-seo/src/integrations/admin/background-indexing-integration.php(221): Yoast\WP\SEO\Actions\Indexing\Abstract_Link_Indexing_Action->index()
        #9 /home/customer/www/*****.com.au/public_html/wp-includes/class-wp-hook.php(324): Yoast\WP\SEO\Integrations\Admin\Background_Indexing_Integration->index()
        #10 /home/customer/www/*****.com.au/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)
        #11 /home/customer/www/*****.com.au/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
        #12 /home/customer/www/*****.com.au/public_html/wp-cron.php(191): do_action_ref_array(‘wpseo_indexable…’, Array)
        #13 {main}
        thrown in /home/customer/www/*****.com.au/public_html/wp-content/plugins/porto-functionality/shortcodes/templates/porto_preview_image.php on line 38

        I would like to mention that WordPress and all plugins on website are up to date.
        Porto theme Version: 7.0.4

        Please help!

        Thanks.

        #4584
        Aizaz Awan
        Keymaster

            Hello, @sagaranvekar,

            Apologies for any inconvenience caused. In the latest theme version, such errors are not common, as numerous customers are currently satisfied with its performance. To assist you in resolving this issue, could you kindly share your wp-admin URL and access details privately within this topic’s content area? Please ensure you’ve backed up your site beforehand. This will enable me to thoroughly investigate and provide you with an appropriate solution.

            Best Regards,
            PThemes Team.

            #4640
            sagaranvekar
            Participant

                Hi Aizaz,

                Thank you very much for getting back to me. Actually I didn’t get the notification of your reply to my email id even after clicking on “Notify me of follow-up replies via email”. So came here to check and found your reply.

                We are using Porto theme on 5-6 other websites but this is the only one which is slow and shows PHP error.

                I just added website admin credentials in private area.

                Please note that this is a live eCommerce website. Our host takes daily backups. I just took manual one too.

                Thank you.

                This field is Private Content.

                #4652
                Aizaz Awan
                Keymaster

                    Hello, @sagaranvekar,

                    Thanks for sharing the access with us. However, when I try to check the login details it is showing an error to me and I cannot login/check your site to find the cause of your issues. Please refer to the screenshot: https://postimg.cc/Ty14F8dV and then try to share the working admin login details with us here.

                    Best Regards,
                    PThemes Team.

                    #4653
                    sagaranvekar
                    Participant

                        Apologies for incorrect credentials. I just added correct ones.

                        This field is Private Content.

                        #4654
                        Aizaz Awan
                        Keymaster

                            Hello, @sagaranvekar,

                            Thanks for sharing the working access with us here. I have checked and debugged your issue on the site I just found that you are not using the latest version of the theme and its core plugin so I updated them to the latest version after that I previewed the site it is working fine without any errors see the resulting image: https://postimg.cc/mzy9FWgv

                            Second, regarding to the speed issue I can see that you have modified the site with your content. All of our theme demos are very well optimized.

                            When a user installs the theme on their server and imports the demo data user doesn’t need to optimize the site speed but when a user changes the demo content with his/her content if their content is not optimized then he/she must need to optimize the content for better speed performance.

                            Our theme has a special feature called “Speed Optimization Wizard” You can find this option in the Dashboard >> Porto >> Speed Optimization Wizard and set the settings as per your need to speed up your site. Furthermore below are some articles to know how to optimize the site speed using our theme.

                            https://www.portotheme.com/wordpress/porto/documentation/how-to-improve-site-speed/
                            https://www.portotheme.com/wordpress/porto/documentation/merge-stylesheets-in-a-file/
                            https://www.portotheme.com/wordpress/porto/documentation/critical-css/
                            https://www.portotheme.com/wordpress/porto/documentation/faq/how-to-compile-shortcodes-css/
                            https://www.portotheme.com/wordpress/porto/documentation/w3-total-cache/

                            Best Regards,
                            PThemes Team.

                            #4657
                            sagaranvekar
                            Participant

                                Hi Aizaz,

                                Thank you for getting back to me.

                                I agree that website content is modified and needs optimization. I will contact website owner regarding it. But website is responding well after the recent theme update done by you.

                                I would like to mention that theme was on version 7.0.4 when I contacted you. Which is just one version behind and v7.0.5 released on 13th Feb 24 which is just one day after contacting you. So, theme was not using really old version. Still website had this fatal error. So, do you think the theme was not updating correctly? Please refer screen recording in private area.

                                Please let me know your thoughts.

                                This field is Private Content.

                                #4678
                                Aizaz Awan
                                Keymaster

                                    Hello, @sagaranvekar,

                                    We will fix the issue. For this, could you let me know which page can I see the php fatal issue?

                                    Thanks for the confirmation and for sharing the video I have watched it and understand your concern. Let me tell you. I updated the theme on the site and then I updated the core plugin as well. Then I previewed the site and it was working fine without any errors displayed on the site as I showed you.

                                    Best Regards,
                                    PThemes Team

                                    #4679
                                    sagaranvekar
                                    Participant

                                        Please note that, the error is not showing on front-end anywhere. Even before you updated theme, it was not showing. It is there in
                                        php_errorlog file in the website root.

                                        The main error reported in 1st post is still there. I deleted php_errorlog file and then tried to access website. On accessing website multiple times, the error repeated. Please check error in private area.

                                        There is another error in Statistics tool which I mentioned in private area below main error.

                                        This field is Private Content.

                                        #4695
                                        sagaranvekar
                                        Participant

                                            Hi Aizaz,

                                            Do we have any update? Please let me know.

                                            #4709
                                            Aizaz Awan
                                            Keymaster

                                                Hello, @sagaranvekar,

                                                We are pleased to inform you that we have solved your issue on your site, please check back to your site after clearing the browser cache.

                                                Best Regards,
                                                PThemes Team

                                                #4793
                                                sagaranvekar
                                                Participant

                                                    Hi Aizaz,

                                                    Sorry for the delay in replying. I was unwell and taking rest. Now I am back to work.

                                                    I just checked, issue is still there. Just line number is changed. I am pasting another fatal error in private area.

                                                    Please take a look.

                                                    This field is Private Content.

                                                    #4840
                                                    Aizaz Awan
                                                    Keymaster

                                                        Hello, @sagaranvekar,

                                                        We are pleased to inform you that we have solved your issue on your site, please check back to your site after clearing the browser cache.

                                                        Best Regards,
                                                        PThemes Team

                                                        #4860
                                                        sagaranvekar
                                                        Participant

                                                            Thank you for the confirmation. There is new error now. Please check private area.

                                                            This field is Private Content.

                                                            • This reply was modified 1 hour, 50 minutes ago by sagaranvekar.
                                                          Viewing 14 posts - 1 through 14 (of 14 total)
                                                          • You must be logged in to reply to this topic.
                                                          Customize Icon
                                                          Need Customization? We specialize in delivering high-quality web and mobile design/development services to our clientele. Should you require customization services, please do not hesitate to reach out to us at your convenience.