• Resolved catalanos

    (@catalanos)


    Hello,

    I activated the plugin on a website and, it suddenly crashed. The template tab is unavailable, it said that the WordPress crashed.

    On the email I received the following message

    An error of type E_ERROR occurred on line 284 of the file

    /home/jnopieseutilaje/public_html/wp-content/plugins/elex-request-a-quote/src/FormSetting/Models/FormSettings.php. Mesaj eroare: Uncaught TypeError: Argument 1 passed to Elex\RequestAQuote\FormSetting\Models\FormSettings::build() must be of the type array, bool given, called in /home/jnopieseutilaje/public_html/wp-content/plugins/elex-request-a-quote/src/FormSetting/FormSettingController.php on line 48 and defined in /home/jnopieseutilaje/public_html/wp-content/plugins/elex-request-a-quote/src/FormSetting/Models/FormSettings.php:284
    Stack trace:
    #0 /home/jnopieseutilaje/public_html/wp-content/plugins/elex-request-a-quote/src/FormSetting/FormSettingController.php(48): Elex\RequestAQuote\FormSetting\Models\FormSettings::build(false)
    #1 /home/jnopieseutilaje/public_html/wp-content/plugins/elex-request-a-quote/src/TemplateSetting/TemplateController.php(41): Elex\RequestAQuote\FormSetting\FormSettingController::get_settings()
    #2 /home/jnopieseutilaje/public_html/wp-includes/class-wp-hook.php(324): Elex\RequestAQuote\TemplateSetting\TemplateController::load_template(”)
    #3 /home/jnopieseutilaje/public_html/wp-includes/class-wp-hook.php(348):

    The plugin is installed with exactly the same configuration, on a demo site. On the demo site, it works perfectly. I copied everything on the live site and I have the described error.

    WordPress 6.5.3
    Equipo (versiunea 2.6)
    ELEX WooCommerce Request a Quote – Basic (versiunea 2.2.4)
    PHP 7.4.33


    I also played with the PHP version, I saw no difference.

    Can you help me, please? Thank you in advance for cooperation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ELEXtensions

    (@elextensions)

    Hello @catalanos ,

    Thanks for reaching out to us. I have shared this error with the development team for further investigation. We suspect there might be a compatibility issue with the plugin or the WP/WC version. I will provide an update as soon as possible.

    We appreciate your patience.

    Thread Starter catalanos

    (@catalanos)

    Hello, thank you for the answer. I tested your plugin in multiple ways. I think is a problem somehow caused by an incompatibility with YOAST.

    If YOAST is deactivated, your plugin can be activated, but the website is crashing.
    If YOAST is active, your plugin can’t be activated.
    I also deleted, YOAST, but the problem persists.

    This is the error received in the log file.

    [21-May-2024 07:49:58 UTC] PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /home/jnopieseutilaje/public_html/wp-content/plugins/elex-request-a-quote/src/Quotelist/ListPageController.php:32
    Stack trace: 0 /home/jnopieseutilaje/public_html/wp-content/plugins/elex-request-a-quote/src/Quotelist/QuoteListController.php(502): Elex\RequestAQuote\Quotelist\ListPageController::get_settings(‘quote_list_page’, ”) 1 /home/jnopieseutilaje/public_html/wp-includes/shortcodes.php(433): Elex\RequestAQuote\Quotelist\QuoteListController::elex_quote_request_list_shortcode(Array, ”, ‘elex_quote_requ…’) 2 [internal function]: do_shortcode_tag(Array) 3 /home/jnopieseutilaje/public_html/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\[(\[?)(elex_q…’, ‘do_shortcode_ta…’, ‘[elex_quote_req…’) 4 /home/jnopieseutilaje/public_html/wp-includes/class-wp-hook.php(324): do_shortcode(‘[elex_quote_req…’) 5 /home/jnopieseutilaje/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘[elex_quote_req…’, Array) 6 /home/jnopieseutilaje/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(117): apply_filters(‘the_content’, ‘[elex_quote_req…’) 7 /home/jnopieseutilaje/public_html/wp-content/plugins/wordpress-seo/src/integrations/watchers/indexable-post-watcher.php(209): Yoast\WP\SEO\Builders\Indexable_Link_Builder->build(Object(Yoast\WP\SEO\Models\Indexable), ‘[elex_quote_req…’) 8 /home/jnopieseutilaje/public_html/wp-includes/class-wp-hook.php(326): Yoast\WP\SEO\Integrations\Watchers\Indexable_Post_Watcher->build_indexable(52727) 9 /home/jnopieseutilaje/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 10 /home/jnopieseutilaje/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 11 /home/jnopieseutilaje/public_html/wp-includes/post.php(4839): do_action(‘wp_insert_post’, 52727, Object(WP_Post), false) 12 /home/jnopieseutilaje/public_html/wp-content/plugins/elex-request-a-quote/src/RequestAQuote.php(196): wp_insert_post(Array) 13 /home/jnopieseutilaje/public_html/wp-includes/class-wp-hook.php(324): Elex\RequestAQuote\RequestAQuote->elex_quote_request_add_navigation_menu(false) 14 /home/jnopieseutilaje/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 15 /home/jnopieseutilaje/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 16 /home/jnopieseutilaje/public_html/wp-admin/includes/plugin.php(705): do_action(‘activate_elex-r…’, false) 17 /home/jnopieseutilaje/public_html/wp-admin/plugins.php(60): activate_plugin(‘elex-request-a-…’, ‘https://jnopies…’, false) 18 {main}

    thrown in /home/jnopieseutilaje/public_html/wp-content/plugins/elex-request-a-quote/src/Quotelist/ListPageController.php on line 32

    Plugin Author ELEXtensions

    (@elextensions)

    Hello @catalanos,

    We have addressed and resolved the PHP warnings on our end and will be releasing an updated version of the plugin shortly. Please let us know the test results after you check the upcoming version of the plugin.

    Thanks for your patience.

    Thread Starter catalanos

    (@catalanos)

    Hello! I updated your plugin and everything works like a charm!

    Thank you for your great support! Have a great day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught TypeError’ is closed to new replies.