Getting errors on ERROR LOG

Hi, i'm getting 2 errors everyday, one of them I even got that automatic emails from "technical problems" in wordpress.


1 . FROM THE EMAIL

Betheme Child (versão 2.0.1)

Plugin actual: (versão )

PHP versão 8.3.17


Detalhes do erro

================

Um erro do tipo E_ERROR foi causado na linha 3303 do ficheiro /home/b4b6j3z6/public_html/wp-content/themes/betheme/functions/builder/class-mfn-builder-admin.php. Mensagem de erro: Uncaught Error: Call to undefined method Mfn_Builder_Admin::set_woo_templates_conditions() in /home/b4b6j3z6/public_html/wp-content/themes/betheme/functions/builder/class-mfn-builder-admin.php:3303

Stack trace:

#0 /home/b4b6j3z6/public_html/wp-content/themes/betheme/functions/post-types/class-mfn-post-type.php(293): Mfn_Builder_Admin->save(1456107)

#1 /home/b4b6j3z6/public_html/wp-includes/class-wp-hook.php(326): Mfn_Post_Type->save_box(1456107)

#2 /home/b4b6j3z6/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)

#3 /home/b4b6j3z6/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

#4 /home/b4b6j3z6/public_html/wp-includes/post.php(5110): do_action('save_post', 1456107, Object(WP_Post), true)

#5 /home/b4b6j3z6/public_html/wp-includes/post.php(5212): wp_insert_post(Array, false, true)

#6 /home/b4b6j3z6/public_html/wp-admin/includes/post.php(453): wp_update_post(Array)

#7 /home/b4b6j3z6/public_html/wp-admin/post.php(227): edit_post()

#8 {main}

thrown

2 - ERROR LOG - MULTIPLE TIMES PER DAY:

[15-Jun-2025 22:44:10 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 136

[15-Jun-2025 22:44:12 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 136

[15-Jun-2025 22:44:15 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 136

[15-Jun-2025 22:44:18 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 136

[15-Jun-2025 22:44:21 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 136

[15-Jun-2025 22:44:24 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 136

[15-Jun-2025 22:44:26 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 136

[15-Jun-2025 22:44:42 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 136

Comments

  • Hey,

    Please send us the WordPress dashboard and FTP access privately through the contact form, which is on the right side at https://themeforest.net/user/muffingroup#contact and we will check what might be the reason.

    Notice!

    Please attach a link to this forum discussion.

    Sending incorrect or incomplete data will result in a longer response time.

    Therefore, please ensure that the data you send are complete and correct.

    Thanks

  • Please check it out now.


    Best regards

  • I will keep checking the log, but what I noticed is that my layout changed just on a specific module on homepage: https://www.dropbox.com/scl/fi/uie54pxkr6u4pn8rjanb7/Captura-de-ecr-2025-06-17-s-16.45.59.png?rlkey=wc1fi5y6jlcy8cbck3tailz4x&dl=0


    The font size is huge and it was way smaller before.


    Did it have anything to do with your change? (from our side we didn't touch CSS or settings)

  • Indeed, it was related to our change. My apologies.

    I have placed a temporary fix into your custom CSS in theme options, and soon correct it permanently.


    Best regards

  • Thanks.


    Concerning the main issue, still happens all day:

    [19-Jun-2025 08:21:34 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 140

    [19-Jun-2025 08:21:34 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 140

    [19-Jun-2025 08:21:34 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 140

    [19-Jun-2025 08:21:34 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 140

    [19-Jun-2025 08:22:11 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 140

    [19-Jun-2025 08:23:33 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 140

    [19-Jun-2025 08:23:33 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 140

    [19-Jun-2025 08:23:33 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 140

  • We will take a look at this.


    Best regards

  • We made another adjustment.

    Please check it out now.


    Best regards

  • Hi

    It keeps happening. Thousands of lines per day.

  • Do you have the newest version of Betheme installed?

  • Yes. Have updated this morning and still happening.

  • We tried to use the FTP credentials you sent before do not work.

    Did you remove them or change them?


    Best regards

  • Please try now.


    You can see the error.log file in public_html/

  • Does the error message still refer to line 140?

    Since this line is empty, it is impossible for it to generate any errors.


  • Hi

    You can see the lines on that file over ftp.

    Now it says

    [25-Jun-2025 11:16:57 UTC] PHP Warning: Array to string conversion in /home/b4b6j3z6/public_html/wp-content/themes/betheme/visual-builder/classes/front-template-view.php on line 153

  • Please check if you are still receiving errors now.


    Thanks

  • That error disappeared but this started to happen every X minutes:

    [25-Jun-2025 12:09:53 UTC] PHP Fatal error: Uncaught Error: Class "Mfn_Template_View" not found in /home/b4b6j3z6/public_html/wp-content/themes/betheme/functions/theme-functions.php:441

    Stack trace:

    #0 /home/b4b6j3z6/public_html/wp-includes/class-wp-hook.php(324): mfn_blog_order(Object(WP_Query))

    #1 /home/b4b6j3z6/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)

    #2 /home/b4b6j3z6/public_html/wp-includes/plugin.php(565): WP_Hook->do_action(Array)

    #3 /home/b4b6j3z6/public_html/wp-includes/class-wp-query.php(1910): do_action_ref_array('pre_get_posts', Array)

    #4 /home/b4b6j3z6/public_html/wp-includes/class-wp-query.php(3949): WP_Query->get_posts()

    #5 /home/b4b6j3z6/public_html/wp-includes/class-wp.php(701): WP_Query->query(Array)

    #6 /home/b4b6j3z6/public_html/wp-includes/class-wp.php(821): WP->query_posts()

    #7 /home/b4b6j3z6/public_html/wp-includes/functions.php(1342): WP->main('')

    #8 /home/b4b6j3z6/public_html/wp-blog-header.php(16): wp()

    #9 /home/b4b6j3z6/public_html/index.php(17): require('/home/b4b6j3z6/...')

    #10 {main}

     thrown in /home/b4b6j3z6/public_html/wp-content/themes/betheme/functions/theme-functions.php on line 441

  • As I have htaccess rules because I migrated from opencart and now Im blocking them, the website is giving 500 error internal on a lot of pages lots of time.


    Please fix it ASAP.


    I've asked claude.ai just to debug it, here is the info:

    ## BeTheme Critical Error Report - Class "Mfn_Template_View" not found


    ### Error Details:

    **Fatal Error:** Uncaught Error: Class "Mfn_Template_View" not found


    **Affected Files:**

    1. `/wp-content/themes/betheme/functions/theme-functions.php:441` (function: mfn_blog_order)

    2. `/wp-content/themes/betheme/functions/theme-woocommerce.php:1491` (function: mfn_shop_template_orderby)


    ### When the error occurs:

    The error is triggered when URLs contain certain query parameters that BeTheme doesn't expect:


    1. `?limit=50` (numeric limit parameter)

    2. `?route=anything` (route parameter)

    3. `?order=ASC` or `?order=DESC` (order without orderby)

    4. `?sort=p.price` (sort with dot notation)


    ### Impact:

    - Returns HTTP 500 Internal Server Error

    - Makes the entire site inaccessible when these parameters are present

    - Affects SEO crawlers that test various URL parameters


    ### Steps to reproduce:

    1. Visit: `https://yoursite.com/?limit=50`

    2. Visit: `https://yoursite.com/?route=test`

    3. Visit: `https://yoursite.com/?order=ASC` (without orderby parameter)


    ### Expected behavior:

    BeTheme should handle unknown parameters gracefully without throwing fatal errors.


    ### Temporary workaround:

    We had to remove certain .htaccess rules that were attempting to handle these URLs because they triggered the BeTheme error.


    ### Environment:

    - WordPress 6.7.1

    - WooCommerce 9.5.1

    - BeTheme (latest version)

    - PHP 8.3


    ### Additional notes:

    The error suggests that BeTheme is trying to use the Mfn_Template_View class in certain conditions, but this class is not loaded or doesn't exist in those contexts. The visual-builder files exist but the class isn't available when these specific query parameters are processed.


    Please investigate why the Mfn_Template_View class is not available in these specific scenarios and implement proper error handling.

  • These errors occurred while we were testing and fixing your issue.

    They should not appear anymore.


    Best regards

  • Hi

    I will keep an eye and update you.

    i see that you've changed my index.php on root.

    Should it stay that way?

  • We did not touch this file, so you will not overwrite any changes we implemented by editing it.


    Best regards

Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.