Skip Navigation

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

Problem:
I just purchased WPML and I get the following error only when the 'WPML String Translation' plugin is activated.

Warning: ftp_fget() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 146

Warning: ftp_mkdir() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 560

When I deactivate the 'WPML String Translation' plugin the error goes away.

This error will occur on the published website and also when I edit a webpage within WordPress. Any ideas what is causing this? I literally just installed WPML and I'm using the Avada WordPress theme which is said to be 100% compatible.

**EDIT**
I resolved the first error by increasing the Memory Limit to 256M. I am still getting the second error:

Warning: ftp_mkdir() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 560

Solution:
I found the solution to the issue. The owner of the core wordpress files was set to my personal user. I changed this permission to be apache and everything seems to be working.

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.

This topic contains 10 replies, has 2 voices.

Last updated by paulD-46 4 years, 4 months ago.

Assisted by: Mateus Getulio.

Author Posts
February 4, 2021 at 8:27 pm #8010859

paulD-46

I just purchased WPML and I get the following error only when the 'WPML String Translation' plugin is activated.

Warning: ftp_fget() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 146

Warning: ftp_mkdir() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 560

When I deactivate the 'WPML String Translation' plugin the error goes away.

This error will occur on the published website and also when I edit a webpage within WordPress. Any ideas what is causing this? I literally just installed WPML and I'm using the Avada WordPress theme which is said to be 100% compatible.

**EDIT**
I resolved the first error by increasing the Memory Limit to 256M. I am still getting the second error:

Warning: ftp_mkdir() expects parameter 1 to be resource, null given in /wp-admin/includes/class-wp-filesystem-ftpext.php on line 560

wpml-error-1.jpg
February 5, 2021 at 1:16 pm #8016721

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Paul,

Welcome to the WPML Support Forum.

Could you please run the website only with WPML plugins while all additional plugins are deactivated and confirm if the issue persists?

If so, please make a backup of your site and database and try running the WPML troubleshooting options:
https://wpml.org/documentation/support/wpml-troubleshooting-options/

If the issue does not occur when running the site with WPML plugins only, please reactivate the other plugins one by one while investigating when the problem occurs again.

Please also change to one default theme (Twenty Twenty-one, for example) and check if the issue persists.

Let me know about the results. Thank you,

Mateus.

February 5, 2021 at 5:25 pm #8019099

paulD-46

Mateus,

Thank you for the reply. I already had all other plugins disabled, with the exception of Avada Core and Avada Builder. Avada theme says it is 100% compatible with WPML.

I tried switching to the 2021 theme and I am not receiving any errors when WPML is active.

When disabling all WPML plugins, my Avada theme is working perfectly fine, but the moment I enable it I get several errors on back-end of website and also on front-end.

It almost seems like Avada isn't 100% compatible. I am using Avada v7.2.1, which is the newest version available. Maybe it's an issue with Avada?

Attached is a new image of the errors I receive when editing a page from within WordPress. This is with the Avada theme active and only the WPML plugins active (along with Avada Core and Builder).

Please let me know if there is anything I can do to resolve, otherwise I'm gonna have to scrap this plugin and give Polylang a try.

wpml-error-2.jpg
February 5, 2021 at 6:32 pm #8019289

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Please, take a look at my previous private reply and let me know when the migration process is done. Thanks.

February 5, 2021 at 6:54 pm #8019423

paulD-46

Hi Mateus,

Thank you for the quick reply. I followed the steps to migrate the site to Cloudways be get the following message: "We are unable to contact the source site. Due to this the migration cannot be completed."

I tried 3 different times and double-checked the authentication.

cloudways.jpg
February 5, 2021 at 7:17 pm #8019541

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Please try adding the URL like this; hidden link

(meaning with the hidden link)

Does the migration work after this?

February 5, 2021 at 7:36 pm #8019605

paulD-46

Mateus,

I did not try this originally. I tried just now using http:// and https:// and neither works. Any other ideas? Are you able to contact the source site on your end?

February 5, 2021 at 7:50 pm #8019679

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Since the migration process failed, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. 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.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Thank you.

February 5, 2021 at 8:01 pm #8019697

paulD-46

Mateus,

I definitely appreciate the quick responses. The website I am working on is our internal testing website that is hosted on a local server. I'm not sure how I can provide you public access. Unless you want to take the time for a public screen share to troubleshoot the issue?

February 5, 2021 at 8:18 pm #8019707

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

In this case, I'd like your help creating a package of your website and sending it to us.

Please use the plugin Duplicator(hidden link) to create a full copy of your website so we can take a look at it and see what's causing the issue.

Please check our tutorial on how to create a Duplicator package here: https://wpml.org/faq/provide-supporters-copy-site/

If you come across problems while creating it, please feel free to ignore(exclude from the backup) both uploads and cache folders.

I'm enabling the proper field for your to share this copy, you'll see it in your next response.

Alternatively, you may use any file sharing service that you prefer and share the link in the ticket(your next response is being marked as private, only you and I have access to it).

Thank you, please let me know.

February 5, 2021 at 9:08 pm #8019809

paulD-46

Mateus,

I found the solution to the issue. The owner of the core wordpress files was set to my personal user. I changed this permission to be apache and everything seems to be working.

Thank you for your support.