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.