Support » Plugin: LDD Directory Lite » WordPress crashes on html or pdf export

  • Resolved henry88g

    (@henry88g)


    WordPress 5.8

    I have just purchased, installed and activated the Export and Report plugin. No problem exporting xml or csv. WordPress crashes (There has been a critical error on this website. Please check your site admin email inbox for instructions.) when I try to export (using default template – or a copy of that with another name) HTML or PDF.

    Any help gratefully accepted.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • could you please share the error? error information should have been sent to your email

    Thread Starter henry88g

    (@henry88g)

    I know, but I never received any email. Could that be due to an SMTP problem my end? – this site is not set up for sending emails at present. Just in case, I will add in the smtp plugin that works for me in other of my sites.

    can you enable debug? that way you will be to see error in browser or a debug file inside wp-content folder

    Debugging in WordPress

    Thread Starter henry88g

    (@henry88g)

    Looks like a version issue. – Henry

    Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/includes/mpdf/mpdf.php on line 2349

    Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/includes/mpdf/mpdf.php on line 2350

    Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/includes/mpdf/mpdf.php on line 2351

    Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/includes/mpdf/mpdf.php on line 2352

    Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/includes/mpdf/mpdf.php on line 2429

    Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/includes/mpdf/mpdf.php on line 2430

    and a lot more of the same.

    Thread Starter henry88g

    (@henry88g)

    Hi. There’s lot of this sort of thing:

    “Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/includes/mpdf/mpdf.php on line 2430”

    this should not break the functionality, however i will check that and will update you? you are using PHP 7.4 right?

    Thread Starter henry88g

    (@henry88g)

    Thanks – 7.4.3 it is.

    Off for supper now. Still, phone is with me.

    Regards
    Henry

    Thread Starter henry88g

    (@henry88g)

    Sorry, I hadn’t got to the end of the messages. Here you go:

    Warning: Use of undefined constant get_html_loop - assumed 'get_html_loop' (this will throw an Error in a future version of PHP) in /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/ldd-directory-lite-reporting.php on line 324
    
    Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/ldd-directory-lite-reporting.php:343 Stack trace: #0 /var/www/html/testsite/wp-includes/shortcodes.php(356): arr2html->get_html_loop() #1 [internal function]: do_shortcode_tag() #2 /var/www/html/testsite/wp-includes/shortcodes.php(228): preg_replace_callback() #3 /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/ldd-directory-lite-reporting.php(332): do_shortcode() #4 /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/ldd-directory-lite-reporting.php(325): arr2html->create_view() #5 /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/ldd-directory-lite-reporting.php(887): arr2html->__construct() #6 /var/www/html/testsite/wp-includes/class-wp-hook.php(303): generate_report_file_function() #7 /var/www/html/testsite/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #8 /var/www/html/testsite/wp-includes/plugin.php(470): WP_Hook->do_action() #9 / in /var/www/html/testsite/wp-content/plugins/ldd-directory-reports/ldd-directory-lite-reporting.php on line 343
    
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    if you can update the file, please go to ldd-directory-lite-reporting.php inside ldd-directory-reports plugin, on around line 341 please replace $return_html =””; with $return_html = array();
    I will update it in the plugin repository soon,

    Thread Starter henry88g

    (@henry88g)

    That does the trick. Many thanks for your attentiveness to my problem.
    (I’ve learned something about debugging WordPress – and I’ve been using it for a decade or so.)

    Now to work on editing templates.

    Thanks again,
    Henry

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.