• Resolved idesmond

    (@idesmond)


    Hello,

    I migrated the website from a server to another one, updated wordpress and the plugin. Suddenly the “write a new message” (on the page: Scrivi un nuovo messaggio) does not work anymore.

    Do you have any idea?

    Debug tells me that everything is ok.
    Active plugins:
    Array ( [0] => akismet/akismet.php [1] => all-in-one-wp-migration/all-in-one-wp-migration.php [2] => backupbuddy/backupbuddy.php [3] => cookie-notice/cookie-notice.php [4] => duplicate-post/duplicate-post.php [5] => google-sitemap-generator/sitemap.php [6] => gwolle-gb/gwolle-gb.php [7] => insert-headers-and-footers/ihaf.php [8] => nextgen-gallery-optimizer/nextgen-gallery-optimizer.php [9] => qtranslate-x/qtranslate.php [10] => super-rss-reader/super-rss-reader.php [11] => wp-db-backup/wp-db-backup.php [12] => wp-optimize/wp-optimize.php [13] => wp-seo-qtranslate-x/wordpress-seo-qtranslate-x.php [14] => nextgen-gallery/nggallery.php )

    Best,
    Fabio

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

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi, it seems you are using a third-party jQuery library.
    It is best and advised to use the jQuery from WordPress itself.
    Is there an option in your theme, or do you know which plugin is doing this?

    Thread Starter idesmond

    (@idesmond)

    Thank you Marcel.

    I disactivated all the “useless” plugins, but nothing changed.

    I can’t find a “jQuery option”, I guess it’s the theme itself who’s doing that (Theme: Luxuos, version 1.7.6, by ThemeShaper), but how can I check it?

    Thanks again,
    Fabio

    Plugin Author Marcel Pol

    (@mpol)

    Can you send the zipfile of the theme to [email protected] ?
    I will take a look at it tomorrow.

    Plugin Author Marcel Pol

    (@mpol)

    Could you add this code in your own plugin, or in the functions.php of your child theme.

    function my_thshpr_setup() {
             wp_dequeue_script( 'jquery' );
             wp_deregister_script('jquery');
            wp_register_script('jquery', 'https://torredegliammannati.it/wp-includes/js/jquery/jquery.js', false);
            wp_enqueue_script('jquery');
    }
    add_action( 'after_setup_theme', 'my_thshpr_setup', 99 );
    Thread Starter idesmond

    (@idesmond)

    Hei Marcel,

    I added on the top of the theme functions.php (since I’m not using a child theme).
    But nothing has changed.

    The first time I installed the plugin it was working and I didn’t updated the theme. Do you have any other idea?

    Best,
    Fabio

    Plugin Author Marcel Pol

    (@mpol)

    One error is fixed.

    There is still a JavaScript error:
    Error: Syntax error, unrecognized expression: #.menu>ul

    Not sure where that is happening.
    Can you search in files where that is coming from?
    It should either be:
    #menu>ul
    or
    .menu>ul

    Plugin Author Marcel Pol

    (@mpol)

    Dir you change the jqueryslidemenu.js file?
    You want to remove this dot:
    line 117:
    jqueryslidemenu.buildmenu(“.menu”, arrowimages);

    Thread Starter idesmond

    (@idesmond)

    Now line 117 is a commento.

    Still nothing has changed.

    I actually didn’t change anything during the operation of migrating the website.

    Fabio

    Plugin Author Marcel Pol

    (@mpol)

    You can check the console of your inspector.
    Right-click on the page, select “Inspect element”. Then select the console-tab.
    You will see there is a different error now:
    TypeError: jQuery.browser is undefined
    which is coming from script.js from the theme.

    Not sure what to advise here. That function has been removed from jQuery since version 1.9.
    You are using a theme that has seen its last update in 2011, and the world and WordPress and jQuery are moving on.

    There is a post with a jQuery plugin that you could use:
    https://stackoverflow.com/questions/9638247/is-jquery-browser-deprecated
    You might be able to integrate it, but I am not too familiar with this.

    Maybe you can just remove that line from script.js?

    This whole thing has nothing to do with my plugin anymore, but with an obsolete theme using deprecated functionality.

    Plugin Author Marcel Pol

    (@mpol)

    Coming back on it, it seems to be part of jquery-migrate.
    That one isn’t enqueued on your website, but you can enqueue it.

    You can add this code to the other enqueue calls listed above:
    wp_enqueue_script( 'jquery-migrate' );

    Thread Starter idesmond

    (@idesmond)

    Thank you Marcel.

    I’ll update the website soon.

    5 stars for your support!

    Best,
    Fabio

    Plugin Author Marcel Pol

    (@mpol)

    Don’t run away ??

    You seem to be missing now the jQuery UI tabs.
    You can add this line of code:

    wp_enqueue_script( 'jquery-ui-tabs' );

    But yes, it would be a good thing to look out for another theme that is still supported.

    Thread Starter idesmond

    (@idesmond)

    Added, and there is still something missing ahah.

    But thank you.
    Again!

    Plugin Author Marcel Pol

    (@mpol)

    Just keep on putting out fires, you will get it going now.

    wp_enqueue_script('jquery-ui-accordion');

    Thread Starter idesmond

    (@idesmond)

    added… and more is to add!

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Write a new message button does not work’ is closed to new replies.