Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues on your Dashboard > Pages, where clicking leads to unexpected behavior, it might be due to a script conflict in the Donations Block plugin.
Solution:
We recommend trying the following steps:
1. Open the

.../wp-content/plugins/donations-block/admin/class-donations-block-admin.php

file.
2. Locate line 78.
3. Replace the existing script enqueue lines with:

// wp_enqueue_script( 'jQuery', plugin_dir_url( __FILE__ ) . 'js/jquery.min.js', array( 'jquery' ), $this->version, false );<br />wp_enqueue_script( 'donation-block-build', plugin_dir_url( __FILE__ ) . 'js/block.build.js', array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wp-components', 'jquery'), false, false );

Since these changes are made directly to the plugin files, consider contacting the plugin author to implement these changes permanently to avoid redoing them after each update.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Lauren 4 months, 1 week ago.

Assisted by: Lauren.

Author Posts
August 23, 2024 at 8:55 pm #16099579

Phil Cox

Background of the issue:
I am trying to: On Dashboard > Pages, when I click "Quick Edit" for any page, the page disappears from the list. When I refresh the list, the page is shown in the list again. When I deactivate WPML Multilingual CMS, the problem goes away. Link to a page where the issue can be seen: hidden link

Symptoms:
The page is removed from the list when I click "Quick Edit" for any page. When I refresh the list, the page is shown in the list again.

Questions:
Why does the page disappear from the list when I click 'Quick Edit'?
How can I fix this issue without deactivating WPML Multilingual CMS?

August 26, 2024 at 9:15 pm #16106816

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please install the conflicting plugin on our fresh install here. Once I am able to reproduce it there, I can escalate this to our compatibility team. HEre's the link to log in to the test site:

hidden link

and then let me know when it is ready for me to test further. Thanks!

August 27, 2024 at 5:36 am #16107309

Phil Cox

Thanks Loren, that is done.
Please note I am not receiving any alert after you add a reply. It is very lucky I happened to visit this page and find your reply.

Please also note another WPML issue on the HRMI site.
When I go to WPML > Translation Management, I get the following warning:

This site has moved to a new location
You or someone else moved this site to hidden link. Please keep in mind that:

Translations that you do at hidden link will not appear on this site.
You cannot edit translations on this site.

The site at hidden link is using the same credits for automatic translation as this site.

If you didn't intend to move this site to hidden link, you can indicate that this site should be at hidden link.
If you prefer not to move this site, you can mark it as a copy and enable automatic translation for it.

That is an error since this is the same site at hidden link.
WPML has become very confused and now I can't adjust settings.
Please let me know if this should be set up as a separate ticket??
Thanks.

Screenshot 2024-08-27 at 5.35.31 PM.png
August 29, 2024 at 4:38 pm #16121396

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

I was able to reproduce the issue in a clean install and have escalated this to our compatibility team. In order to make sure you are receiving notifications, please click on the email notifications at the top of the thread and set yourself to receive the updates.

In the meantime, it may help speed things along if you can contact the plugin author and ask them to join our Go Global program.

https://wpml.org/documentation/support/go-global-program/

Screenshot 2024-08-29 at 12.32.53 PM.png
September 3, 2024 at 5:25 pm #16137171

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Please try the following workaround and let me know if this resolves the issue for you:

Open .../wp-content/plugins/donations-block/admin/class-donations-block-admin.php file.

Look for line 78.

Replace these lines:

		wp_enqueue_script( 'jQuery', plugin_dir_url( __FILE__ ) . 'js/jquery.min.js', array( 'jquery' ), $this->version, false );
		
		wp_enqueue_script( 'donation-block-build', plugin_dir_url( __FILE__ ) . 'js/block.build.js', array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wp-components') );		

with:

		// wp_enqueue_script( 'jQuery', plugin_dir_url( __FILE__ ) . 'js/jquery.min.js', array( 'jquery' ), $this->version, false );

		wp_enqueue_script( 'donation-block-build', plugin_dir_url( __FILE__ ) . 'js/block.build.js', array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wp-components', 'jquery'), false, false );

As these changes are made to the donation plugin, you may want to reach out to the plugin author and ask him to implement the change permanently, otherwise this will need to be redone each time there is an update.

Please let me know if this fixes the issue. Thanks!

September 9, 2024 at 7:24 am #16154068

Phil Cox

Thanks for identifying the issue.

The owner has asked me to stop working on this because now that the Paypall plugin is deactivated, the problem has gone away.

Please could you look after the onward liaison between WPML and the Paypal plugin author?

Kind regards,
Phil.

September 9, 2024 at 3:36 pm #16157533

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

There have been a few other reports of this issue and it seems the author has not replied or taken action:

https://wordpress.org/support/topic/plugin-enqueue-jquery-appearance-customize-empty-page/

https://wordpress.org/support/topic/small-incompatibility-with-divi-theme/

I suggest you contact the plugin author and ask them to resolve the issue, as it seems to be coming from their plugin.

Please let me know if you need any further assistance and I will be happy to help. Otherwise, you can mark this ticket as resolved since the issue is no longer happening. Thanks!

September 9, 2024 at 6:45 pm #16158517

Phil Cox

Thanks. As mentioned above, I am not permitted to take this forward with the author of "Donation Block For PayPal” by bharatkambariya.

Thanks for your support.