• Resolved erick401

    (@erick401)


    I have the following error when I use the plugin on php 8.0, on php 7.4 it’s just a warning and everything works fine.

    Error log:

    PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /Applications/MAMP/htdocs/wordpress-total-estate/wp-content/plugins/kaya-qr-code-generator/lib/class.shortcodes_qrcodeshortcode.php:50
    Stack trace:

    0 /Applications/MAMP/htdocs/wordpress-total-estate/wp-includes/shortcodes.php(355): WPKQCG_Shortcodes_qrcodeshortcode::wpkqcg_shortcode_qrcodeshortcodedynamic_handler(”, ‘[example_shortc…’, ‘kaya_qrcode_dyn…’)

    1 [internal function]: do_shortcode_tag(Array)

    2 /Applications/MAMP/htdocs/wordpress-total-estate/wp-includes/shortcodes.php(227): preg_replace_callback(‘/\[(\[?)(kaya_q…’, ‘do_shortcode_ta…’, ‘[kaya_qrcode_dy…’)

    3 /Applications/MAMP/htdocs/wordpress-total-estate/wp-content/themes/centurytwentyonetotalestate/single-agents.php(170): do_shortcode(‘[kaya_qrcode_dy…’)

    4 /Applications/MAMP/htdocs/wordpress-total-estate/wp-includes/template-loader.php(106): include(‘/Applications/M…’)

    5 /Applications/MAMP/htdocs/wordpress-total-estate/wp-blog-header.php(19): require_once(‘/Applications/M…’)

    6 /Applications/MAMP/htdocs/wordpress-total-estate/index.php(17): require(‘/Applications/M…’)

    7 {main}

    thrown in /Applications/MAMP/htdocs/wordpress-total-estate/wp-content/plugins/kaya-qr-code-generator/lib/class.shortcodes_qrcodeshortcode.php on line 50

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

    (@kayastudio)

    Thank you for the report, I will check this and fix it as soon as possible !

    Best regards.

    Plugin Author Kaya Studio

    (@kayastudio)

    Can you download and try to test the development version and let me know if that solve the error to you?

    You can find that version in “Kaya QR Code Generator” WordPress page > Advanced View > to the Advanced Options title, you can select a specific version to download and choose development.

    Or try that link : https://downloads.wp.xz.cn/plugin/kaya-qr-code-generator.zip

    Thank you !

    Thread Starter erick401

    (@erick401)

    Hello, I downloaded the development version and the error disappeared.

    Thanks for the help.

    Plugin Author Kaya Studio

    (@kayastudio)

    Great !

    Thank you for your help and for contributing to the debug of the problem !

    I will update the plugin with that fix right now.

    Thank you again, best regards.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error on php 8.0: Cannot access offset of type string’ is closed to new replies.