Skip Navigation

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

Problem:
The client is unable to download invoices because the backend overview is empty and a JavaScript error is occurring.

Solution:
We recommend searching for the invoices as illustrated in our documentation. Please follow the steps provided in the guide on How to find your past Pay-As-You-Go invoices.

If this solution does not resolve your issue, we encourage you to open a new support ticket for further assistance.

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 12 replies, has 2 voices.

Last updated by Andrey 1 year, 1 month ago.

Assisted by: Andrey.

Author Posts
November 20, 2023 at 11:05 am #14875627

patrickA-12

Hi,

I'm trying to download the invoices, but the overview in the backend is empty and a javascript error appears.

TypeError: e.pages.last.each is not a function
at run.js?a=&v=3.23.2:2:1189530
at run.js?a=&v=3.23.2:2:1189739
at aa (run.js?a=&v=3.23.2:2:551073)
at Za (run.js?a=&v=3.23.2:2:560640)
at Gs (run.js?a=&v=3.23.2:2:604408)
at Du (run.js?a=&v=3.23.2:2:590663)
at Ou (run.js?a=&v=3.23.2:2:590591)
at Eu (run.js?a=&v=3.23.2:2:590454)
at bu (run.js?a=&v=3.23.2:2:587420)
at run.js?a=&v=3.23.2:2:536865

We deactivated all plugins, we switched to a empty theme, we relinked the plugin to the WPML account but so far nothing helped.
Any ideas?

November 20, 2023 at 8:15 pm #14880717

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

Could you please upload the screenshots showing the issue? So it will help me better understand the problem.

November 21, 2023 at 6:53 am #14881909

patrickA-12

Hi Andrey.

When I open the translation management, everything works fine. I can switch to the Tools tab. But as soon as I click Invoices (Rechnungen), the tab becomes empty and the error in the console appears.

Screenshot_14.png
Screenshot_13.png
Screenshot_12.png
Screenshot_11.png
Screenshot_10.png
November 21, 2023 at 2:13 pm #14887745

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for the explanation. It seems some error exists. Could you please activate the debug.log and let me know what is there when you open this tab?

You can do this by adding a few lines to the site’s wp-config.php file. With error log enabled, you will see what the actual problem is.

To enable it, open your wp-config.php file and look for define(‘WP_DEBUG’, false);. Change it to:

define('WP_DEBUG', true);

In order to enable the error logging to a file on the server you need to add yet one more similar line:

define( 'WP_DEBUG_LOG', true );

In this case, the errors will be saved to a debug.log log file inside the /wp-content/directory.

https://wpml.org/documentation/support/debugging-wpml/

Let me know what you see after the debug mode has been enabled.

November 23, 2023 at 7:48 am #14904123

patrickA-12

Hi,

as soon as we activate debug, the Tools tab doesn't work anymore at all.
The debugging process doesnt reach the problem and the only entries in the log is a warning from the theme.

[23-Nov-2023 07:45:26 UTC] PHP Deprecated: Die Funktion Class avia_style_generator wurde mit einem Argument aufgerufen, das seit Version 5.3 veraltet ist! Trying to set protected/private property: avia_style_generator::print_extra_output - will become unavailable in a future release. Check for a set method or a filter. in /www/htdocs/w01b6a28/visiodrom.de/wp-includes/functions.php on line 6031

November 23, 2023 at 8:51 pm #14911983

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thanks for the update. The warning shouldn't create an issue.

I need to request temporary access (wp-admin and FTP) to your site – preferably to a test site where the problem has been replicated if possible – in order to be of better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

November 30, 2023 at 8:49 pm #14967585

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

No worries at all. Could you please update your WPML plugin to the latest version 4.6.8 and add-ons to benefit from the latest bug fixes and improvements? This may not necessarily resolve your problem, however, in order to troubleshoot the issue best we need to work on the latest code available.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

Please remember to backup your database first before you proceed.

Let me know if the issue persists after an update has been done.

December 1, 2023 at 7:18 am #14969353

patrickA-12

Hi Andrey,

thanks again.

I updated the plugin. Error still exists 🙁

Is there another way to find these invoices?

December 1, 2023 at 3:23 pm #14974199

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

I’m sorry that you ran into trouble with this. I need to consult my team regarding the issue.

In the meantime, you can find all your invoices in your WPML account:

1) Log in to your WPML.org account.
2) Use the Search past invoices dropdown to choose the timeframe you want to view.
3) Click the Invoice button to view and download available invoices from that time period.

https://wpml.org/documentation/automatic-translation/automatic-translation-invoices/#where-to-find-your-past-pay-as-you-go-invoices

December 4, 2023 at 8:34 am #14983119

patrickA-12

Hi Andrey,

I need the invoices for automatic translation, that the client paid through their site itself.
In my profile I can only find the invoices for the plugin itself, or am I wrong?

December 4, 2023 at 9:55 am #14984249

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

The only alternative place you can see invoices is your wpml.org account. You can find all your invoices there.

Would it be possible for me to deactivate plugins and themes temporarily? Also, to create a copy of your site for testing locally? If yes, please confirm that the backup is taken.

December 5, 2023 at 6:48 am #14993057

patrickA-12

At the moment I can't, since we already spent so much time on the matter.

Where can I find them in my WPML account?

I only see this:

These are our bills for the plugin itself. I need invoices for automatic translations.

Screenshot_21.png
December 5, 2023 at 9:22 am #14994701

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Have you tried to search for them, as shown in the image?

https://wpml.org/documentation/automatic-translation/automatic-translation-invoices/#where-to-find-your-past-pay-as-you-go-invoices

pay-as-you-go-invoice-1.png