• Resolved whitewizard00

    (@whitewizard00)


    I want to upgrade to php version 8.1 but The Edd is crashing, I’m stuck with php version 7.4 in order to the site work properly

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Mihai Joldis

    (@misulicus)

    Hey @whitewizard00

    Are you able to locate the PHP error logs and post the error messages so we can see what might be failing?

    EDD is compatible with PHP 8, but it might be something else that’s trigering the error. Please make sure that if you use any other EDD extensions, they are also updated.

    Thread Starter whitewizard00

    (@whitewizard00)

    Here is the php error in the log file

    Fatal error: Uncaught ValueError: Unknown format specifier “?” in /home/u805256067/domains/kidzzstory.com/public_html/wp-content/plugins/easy-digital-downloads/includes/post-types.php:63 Stack trace: #0 /home/u805256067/domains/kidzzstory.com/public_html/wp-content/plugins/easy-digital-downloads/includes/post-types.php(63): sprintf() #1 /home/u805256067/domains/kidzzstory.com/public_html/wp-includes/class-wp-hook.php(324): edd_setup_edd_post_types() #2 /home/u805256067/domains/kidzzstory.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /home/u805256067/domains/kidzzstory.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/u805256067/domains/kidzzstory.com/public_html/wp-settings.php(695): do_action() #5 /home/u805256067/domains/kidzzstory.com/public_html/wp-config.php(99): require_once(‘/home/u80525606…’) #6 /home/u805256067/domains/kidzzstory.com/public_html/wp-load.php(50): require_once(‘/home/u80525606…’) #7 /home/u805256067/domains/kidzzstory.com/public_html/wp-blog-header.php(13): require_once(‘/home/u80525606…’) #8 /home/u805256067/domains/kidzzstory.com/public_html/index.php(17): require(‘/home/u80525606…’) #9 {main} thrown in /home/u805256067/domains/kidzzstory.com/public_html/wp-content/plugins/easy-digital-downloads/includes/post-types.php on line 63

    Thread Starter whitewizard00

    (@whitewizard00)

    Here is post-types.php code from 62:64 (that generate errors)

    foreach ( $download_labels as $key => $value ) {
        $download_labels[ $key ] = sprintf( $value, edd_get_label_singular(), edd_get_label_plural() );
    }
    Plugin Support Mihai Joldis

    (@misulicus)

    Thanks for that!

    It seems that this is a translation issue. Can you please tell me what is the language of the website set to? You can find that under the main Dashboard > Settings page.

    Thread Starter whitewizard00

    (@whitewizard00)

    Thank you for caring,


    The site is in Arabic (kidzzstory.com)

    Thread Starter whitewizard00

    (@whitewizard00)

    Yes, You are absolutely right!
    I have change the language to English and upgraded to php 8.1 and it works.
    But unfortunately the theme is broken because English is LTR while Arabic is RTL.
    How can I fix that?

    Plugin Support Mihai Joldis

    (@misulicus)

    Hi @whitewizard00

    Can you please send in a support ticket to our team via https://easydigitaldownloads.com/support/ and we can take a closer look at this?

    You can first check under wp-content/languages/ if you have translation files for Easy Digital Downloads and if you do, remove the files there so that WordPress downloads them again. Perhaps the files you are using are not up to date.

    Thread Starter whitewizard00

    (@whitewizard00)

    Great, Thanks!
    Can you please tell me, How to disable auto update translation for EDD?

    Plugin Support Mihai Joldis

    (@misulicus)

    Try the code snippet below. You can add that to your theme’s functions.php file or create a custom plugin for it.

    function prevent_plugin_language_file_update($update, $plugin, $language) {
    // Specify the plugin folder name for which you want to prevent language file updates
    $plugin_folder = 'easy-digital-downloads';

    // Check if the plugin being updated matches the specified folder name
    if (strpos($plugin, $plugin_folder) !== false) {
    $update = false; // Disable automatic language file updates for the specified plugin
    }

    return $update;
    }
    add_filter('auto_update_translation', 'prevent_plugin_language_file_update', 10, 3);

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Php 7.4 Edd crashing’ is closed to new replies.