Skip Navigation

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

Problem:
WPML String Translation wasn't being activated and when trying to activate, site's main menu and header were gone. There was a fatal error when trying to access Avada Options page and site was breaking.

For some reason, the main site was expecting to use FTP. This is why nothing actually worked. And nothing was being logged in debug.log.

By using Query Monitor, our team was able to find following error:

Fatal error: Uncaught Error: ftp_nlist(): Argument #1 ($ftp) must be of type FTP\Connection, null given
in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 427

Call stack:

ftp_nlist()
wp-admin/includes/class-wp-filesystem-ftpext.php:427
WP_Filesystem_FTPext::exists()
wp-content/themes/Avada/includes/class-avada-server-rules.php:177
Avada_Server_Rules::is_htaccess_writable()
wp-content/themes/Avada/includes/options/performance.php:53
avada_options_section_performance()
wp-content/themes/Avada/includes/class-avada-options.php:155
Avada_Options::set_sections()
wp-content/themes/Avada/includes/class-avada-options.php:107
Avada_Options::__construct()
wp-content/themes/Avada/includes/class-avada-options.php:124
Avada_Options::get_instance()
wp-content/themes/Avada/includes/class-avada.php:716
Avada::get_options()
wp-content/themes/Avada/includes/class-avada-avadaredux.php:30
Avada_AvadaRedux::init_fusionredux()
wp-includes/class-wp-hook.php:308
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-settings.php:623
require_once()
wp-config.php:104
require_once()
wp-load.php:50
require_once()
wp-admin/admin.php:34
require_once()
wp-admin/themes.php:10

Solution:
Team fixed the issue by adding:

define('FS_METHOD', 'direct');

to wp-config.php file.

This seems to work with:
- String Translation - no crashes
- Visiting Avada Options - no crashes
- Front-end - the menu displays just properly now when WPML String Translation is enabled.

This is also actually the reason why no error log was created in the first place.

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 45 replies, has 4 voices.

Last updated by Waqas Bin Hasan 1 year, 8 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
May 9, 2023 at 2:15 pm #13614819

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you so much for your cooperation and patience also.

We're glad that we were able to fix the problem. Since the issue has been resolved, I am closing this ticket as resolved.

Please feel free to contact again in future for anything relating WPML.

Have a great time 🙂