Forum Replies Created

Viewing 15 replies - 1 through 15 (of 35 total)
  • I have same problem upgrading dozens of websites:

    Detalles del error
    ==================
    Se ha producido un error del tipo E_ERROR en la línea 58 del archivo /home/wrvwlrir/public_html/wp-content/plugins/litespeed-cache/tpl/page_optm/entry.tpl.php. Mensaje de error: Uncaught Error: Failed opening required '/home/wrvwlrir/public_html/wp-content/plugins/litespeed-cache/tpl/page_optm/settings-css.tpl.php' (include_path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/share/pear:/usr/share/php') in /home/wrvwlrir/public_html/wp-content/plugins/litespeed-cache/tpl/page_optm/entry.tpl.php:58
    Stack trace:
    #0 /home/wrvwlrir/public_html/wp-content/plugins/litespeed-cache/src/admin-display.cls.php(719): require_once()
    #1 /home/wrvwlrir/public_html/wp-includes/class-wp-hook.php(324): LiteSpeed\Admin_Display->show_page_optm()
    #2 /home/wrvwlrir/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #3 /home/wrvwlrir/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 /home/wrvwlrir/public_html/wp-admin/admin.php(260): do_action()
    #5 {main}

    It seems that plugin is calling settings-css.tpl.php but file’s real name is settings_css.tpl.php. Note difference in underscore and dash.

    It seems to be a problem related to sanitize_file_name function on line 58 on entry.tpl.php:

    require LSCWP_DIR . 'tpl/page_optm/' . sanitize_file_name( $tab_key ) . '.tpl.php';

    In my theme’s functions.php I use this filter:

    //* Limpia los nombres de los archivos que se suban
    add_filter( 'sanitize_file_name', function ( $filename ) {
    $sanitized_filename = remove_accents( $filename ); // Convert to ASCII
    // Standard replacements
    $invalid = array(
    ' ' => '-',
    '%20' => '-',
    '_' => '-',
    );
    $sanitized_filename = str_replace( array_keys( $invalid ), array_values( $invalid ), $sanitized_filename );
    $sanitized_filename = preg_replace('/[^A-Za-z0-9-. ]/', '', $sanitized_filename); // Remove all non-alphanumeric except .
    $sanitized_filename = preg_replace('/.(?=.*.)/', '', $sanitized_filename); // Remove all but last .
    $sanitized_filename = preg_replace('/-+/', '-', $sanitized_filename); // Replace any more than one - in a row
    $sanitized_filename = str_replace('-.', '.', $sanitized_filename); // Remove last - if at the end
    $sanitized_filename = strtolower( $sanitized_filename ); // Lowercase
    return $sanitized_filename;
    }, 10, 1 );

    I use this to sanitize file uploads and I want to keep using this function.

    Maybe a safer solution could be a different way of calling this file in entry.tpl.php.

    • This reply was modified 9 months, 1 week ago by formulaclick.

    Hi. I’ve tried Dynamic cookie removal option but doesn’t work either. Any solution for this? Thanks

    Any idea how to solve this? We have same error thrown but with another caching plugin (Litespeed cache)…

    thanks

    I have same problem and it’s not solved on 3.3.1…

    This worked for me:

    add_filter( 'woocommerce_admin_features', function( $features ) {
        return array_values(
            array_filter( $features, function($feature) {
                return $feature !== 'marketing';
            } ) 
        );
    });

    Same issue here. Please fix it!

    Same issue here in all my WooCommerce sites. WooCommerce team should fix it! Thanks @riaanknoetze

    Any solution for this? I have exactly same problem. Quite annoying…

    Thread Starter formulaclick

    (@formulaclick)

    Thanks man! That plugin helped a lot. Problem was with another CPT with a custom rewrite that I have created previously. I solved just changing order in registering CPTs.

    Same problem in all websites I manage:

    frontend.min.js?ver=3.0.3:2 Uncaught TypeError: Cannot read property ‘Document’ of undefined
    at Object.<anonymous> (frontend.min.js?ver=3.0.3:2)
    at n (frontend.min.js?ver=3.0.3:2)
    at Object.<anonymous> (frontend.min.js?ver=3.0.3:2)
    at n (frontend.min.js?ver=3.0.3:2)
    at Object.<anonymous> (frontend.min.js?ver=3.0.3:2)
    at n (frontend.min.js?ver=3.0.3:2)
    at frontend.min.js?ver=3.0.3:2
    at frontend.min.js?ver=3.0.3:2
    (anonymous) @ frontend.min.js?ver=3.0.3:2
    n @ frontend.min.js?ver=3.0.3:2
    (anonymous) @ frontend.min.js?ver=3.0.3:2
    n @ frontend.min.js?ver=3.0.3:2
    (anonymous) @ frontend.min.js?ver=3.0.3:2
    n @ frontend.min.js?ver=3.0.3:2
    (anonymous) @ frontend.min.js?ver=3.0.3:2
    (anonymous) @ frontend.min.js?ver=3.0.3:2
    happy-addons.min.js?ver=2.14.1:1 Uncaught TypeError: Cannot read property ‘handlers’ of undefined
    at happy-addons.min.js?ver=2.14.1:1
    at dispatch (jquery.js?ver=1.12.4-wp:3)
    at r.handle (jquery.js?ver=1.12.4-wp:3)
    at Object.trigger (jquery.js?ver=1.12.4-wp:3)
    at Object.jQuery.event.trigger (jquery-migrate-1.4.1-wp.js?ver=1.4.1-wp:644)
    at jquery.js?ver=1.12.4-wp:3
    at Function.each (jquery.js?ver=1.12.4-wp:2)
    at jQuery.fn.init.each (jquery.js?ver=1.12.4-wp:2)
    at jQuery.fn.init.trigger (jquery.js?ver=1.12.4-wp:3)
    at Frontend.init (frontend.min.js?ver=3.0.6:2)

    Same problem here after updating from 1.2 to 1.3

    Thread Starter formulaclick

    (@formulaclick)

    Asi I said. Sync is activated. It’s not syncing problem. I’ve added a new comment and it’s synced but WordPress says there are 3 comments and Graph says there are 4 (one appears duplicated):

    [debug][19-11-22 11:15:01] – Gc sync: 1 new comments
    [debug][19-11-22 11:15:01] – GcParamsService::fetchApiKeys()

    But comments appear duplicated when they a replying another comment. Please check my last post again 🙂

    Check it: https://harodigital.com/noticias/desafio-herrera-marcha-cicloturista-en-homenaje-al-equipo-kas-y-al-jatorrena/#comments

    Thread Starter formulaclick

    (@formulaclick)

    You were right. Now I can see all comments.

    I still have a problem on those posts with comments that reply other comments.

    Example:
    https://harodigital.com/noticias/desafio-herrera-marcha-cicloturista-en-homenaje-al-equipo-kas-y-al-jatorrena/
    https://pasteboard.co/IHQwmjvT.png

    As you can see, in this post there are 2 comments but GraphComment says that there are 3. There is one comment duplicated. It’s not a sync problem, it’s synced and as I say, same problem happen in posts with comments replying other comments.

    Is this a bug? How can be solved?

    Thread Starter formulaclick

    (@formulaclick)

    I’ve found problem. I have WP Cerber Security plugin and this was blocking import. I’ve deactivated that plugin and then import worked:

    [error][19-11-21 17:47:58] – GcMenu::get_notif() – Got HTTP ret !== 200 ( url: https://graphcomment.com/api/website/5dd65ebb5397a55a4af6b8a4/notif)
    [debug][19-11-21 17:47:47] – GcParamsService::fetchApiKeys()
    [debug][19-11-21 17:47:47] – GcSynchronisationController::handleOptionForm() – Everything is ok
    [debug][19-11-21 17:47:47] – GcSynchronisationController::handleOptionForm()
    [debug][19-11-21 17:47:47] – options.php::handle_option_form() gc_action: synchronization
    [error][19-11-21 17:47:23] – GcMenu::get_notif() – Got HTTP ret !== 200 ( url: https://graphcomment.com/api/website/5dd65ebb5397a55a4af6b8a4/notif)
    [error][19-11-21 17:47:08] – GcMenu::get_notif() – Got HTTP ret !== 200 ( url: https://graphcomment.com/api/website/5dd65ebb5397a55a4af6b8a4/notif)
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – No more comments
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – Nbr Comments Found: 0
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :0 posts found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :0 comments found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – request: Get Next Comments
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – Nbr Comments Found: 21
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :15 posts found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :21 comments found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – request: Get Next Comments
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – Nbr Comments Found: 30
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :18 posts found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :30 comments found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – request: Get Next Comments
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – Nbr Comments Found: 30
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :19 posts found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :30 comments found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – request: Get Next Comments
    [debug][19-11-21 17:45:01] – Gc sync: 0 new comments
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – Nbr Comments Found: 30
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :18 posts found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :30 comments found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – request: Get Next Comments
    [debug][19-11-21 17:45:01] – GcParamsService::fetchApiKeys()
    [debug][19-11-21 17:45:01] – Gc sync: start
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – Nbr Comments Found: 30
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :19 posts found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :30 comments found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – request: Get Next Comments
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – Nbr Comments Found: 30
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :7 posts found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – SQL :30 comments found for sending
    [debug][19-11-21 17:44:12] – GcImportService::importNextComments() – request: Get Next Comments
    [debug][19-11-21 17:44:12] – handle_postback wp_async_import_comment exist ? true
    [debug][19-11-21 17:44:12] – WP_Async_Task: handle postback
    [debug][19-11-21 17:44:09] – before post wp_async_import_comment exist ? true
    [debug][19-11-21 17:44:09] – WP_Async_Task: launch
    [debug][19-11-21 17:44:09] – GcImportService::importInit() – Everything is ok
    [debug][19-11-21 17:44:09] – GcGeneralController::handleOptionForm() – Init import
    [debug][19-11-21 17:44:09] – GcImportController::handleOptionForm()
    [debug][19-11-21 17:44:09] – options.php::handle_option_form() gc_action: importation

    Anyway, I can’t find imported comments on GraphComment GC Admin. Should not appear instantly?

    https://pasteboard.co/IHKjra9.png

    Thanks

    Thread Starter formulaclick

    (@formulaclick)

    Logs:

    [debug][19-11-21 10:55:02] – GcParamsService::fetchApiKeys()
    [debug][19-11-21 10:55:02] – fetch keys
    [debug][19-11-21 10:55:02] – Gc sync: 0 new comments
    [debug][19-11-21 10:55:02] – GcParamsService::fetchApiKeys()
    [debug][19-11-21 10:55:02] – Gc sync: start
    [debug][19-11-21 10:54:57] – WP_Async_Task: launch
    [debug][19-11-21 10:54:57] – GcImportService::importInit() – Everything is ok
    [debug][19-11-21 10:54:57] – GcGeneralController::handleOptionForm() – Init import
    [debug][19-11-21 10:54:57] – GcImportController::handleOptionForm()
    [debug][19-11-21 10:54:57] – options.php::handle_option_form() gc_action: importation

    • This reply was modified 6 years, 6 months ago by formulaclick.
    • This reply was modified 6 years, 6 months ago by formulaclick.
Viewing 15 replies - 1 through 15 (of 35 total)