• Resolved pcarvalho

    (@pcarvalho)


    Hi, great plugin!

    I noticed that for a while, whenever i tried to save a translation ( or creating a new po/mo ), i would get this error:

    27-May-2019 11:23:17 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Loco_api_WordPressFileSystem::tryCredentials() must be of the type array, boolean given, called in /path/to/loco-translate/src/api/WordPressFileSystem.php on line 244 and defined in /path/to/loco-translate/src/api/WordPressFileSystem.php:273

    Versions:
    Loco translate 2.2.2
    WP 5.1.1
    PHP 7.2.5

    I know the error is probably due lack of permissions, but this way, it breaks before outputting the real error.

    maybe replace it “$creds?$creds:array()” like you have in another call.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught TypeError in Loco_api_WordPressFileSystem::tryCredentials()’ is closed to new replies.