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.

Our next available supporter will start replying to tickets in about 3.81 hours from now. Thank you for your understanding.

This topic contains 7 replies, has 2 voices.

Last updated by Stéphane 6 months, 3 weeks ago.

Assigned support staff: Riffaz.

Author Posts
March 23, 2019 at 1:05 pm

Stéphane

I am trying to:
Scan my themes and plugins

Instead, I got:
Scan never stop and nothing happens

March 24, 2019 at 5:50 pm #3448897

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Thank you for contacting WPML support.

Please enable error logging. You can find more info on how to do it and example code for debugging at https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging
In brief:
1. Log into your FTP.
2. Edit the wp-config.php file.
3. Add the following code:

define( 'WP_DEBUG', true );
 
define( 'WP_DEBUG_LOG', true );
 
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
 
define( 'SCRIPT_DEBUG', true );

4. Save the file.
5. Try to scan the plugin for strings again.
6. Go back to your FTP.
7. In the wp-content folder, you should find the debug.log file where all errors are added.

Also, check if there are any JavaScript errors on the translation page in edit mode
https://codex.wordpress.org/Using_Your_Browser_to_Diagnose_JavaScript_Errors

Please paste the contents of the debug.log file if there are any errors listed. Let me also know if there are any JavaScript errors.

Additionally, since your overall PHP memory limit is equal to 768MB, you may try to increase your WP backend's memory limit accordingly to check if that helps:
1. Log into your FTP.
2. Edit the wp-config.php file.
3. Add the following code:

define( 'WP_MAX_MEMORY_LIMIT', '768M' );

4. Save the file.

Please let me know the results.

Regards,
Riffaz.

March 24, 2019 at 7:27 pm #3449031

Stéphane

Hi Riffaz,

I followed all your advises, and here is the situation now:

1-The scan still doesn't work.

2-On the console, I get this error:

POST <em><u>hidden link</u></em> 403
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
scanFilesAjax @ theme-plugin-localization.js?ver=2.10.2:207
scanDirSuccess @ theme-plugin-localization.js?ver=2.10.2:260
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
y @ jquery.js?ver=1.12.4:4
c @ jquery.js?ver=1.12.4:4
XMLHttpRequest.send (async)
send @ jquery.js?ver=1.12.4:4
ajax @ jquery.js?ver=1.12.4:4
scanDirAjax @ theme-plugin-localization.js?ver=2.10.2:175
(anonymous) @ theme-plugin-localization.js?ver=2.10.2:168
scan @ theme-plugin-localization.js?ver=2.10.2:152
(anonymous) @ theme-plugin-localization.js?ver=2.10.2:125
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3

3-The debug file says:

[24-Mar-2019 15:21:01 UTC] PHP Notice:  Undefined variable: version in /home/wpmansta/public_html/kativik/wp-content/themes/total-child-theme/functions_8p.php on line 15
[24-Mar-2019 15:21:01 UTC] PHP Notice:  Undefined variable: version in /home/wpmansta/public_html/kativik/wp-content/themes/total-child-theme/functions_8p.php on line 16
[24-Mar-2019 15:21:01 UTC] PHP Notice:  Undefined variable: version in /home/wpmansta/public_html/kativik/wp-content/themes/total-child-theme/functions_8p.php on line 17

So I checked the function_8p.php file at those lines, and they are:

	wp_enqueue_style( '8p-style', get_stylesheet_directory_uri().'/style_careers.css', array(), $version );
	wp_enqueue_style( '8p-style-owl', get_stylesheet_directory_uri().'/OwlCarousel/owl.carousel.min.css', array(), $version );
	wp_enqueue_style( '8p-style-owltheme', get_stylesheet_directory_uri().'/OwlCarousel/owl.theme.default.min.css', array(), $version );

I guess I stil need your help. Thanks in advance 😉

March 25, 2019 at 2:01 pm #3454567

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Thank you for the details.

You have to fix the 403 error before fixing others.
It is related to hosting.
Please contact your hosting provider and ask them to unblock admin-ajax.php or the steps to make it work.

Let me know how it goes.

Regards,

March 25, 2019 at 10:00 pm #3458385

Stéphane

Thanks Riffaz,

I have put the support of my hosting on the case. Please, leave this thread open, I'll give you news as soon as they get back to me with a fix for that error.

March 26, 2019 at 5:05 am #3459183

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

you are welcome.
sure, take your time and just reply to this ticket when you are ready.

March 26, 2019 at 11:12 am #3461825

Stéphane

Hi Riffaz,

My host provider has corrected the 403 error on the admin-ajax.php file, and WPML scan is now working.

Thanks for your help !

March 26, 2019 at 11:14 am #3461835

Stéphane

My issue is resolved now. Thank you!