The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Typo in Move and rename files PHP example

Labels

This Discussion is public

Notifications

There seems to be a typo on line 58 of theĀ Move and rename files PHP example.

$wp_filesystem->put_contents( $index_path, "chmod_file );

Can you please clarify the correct code?

Thank you,

Ana Rita

 

This is a community forum where questions are answered by volunteers. We're end users just as yourself. We have no affiliation with the Formidable team.

We don't have the ability to correct code examples. I suggest you open a help ticket with the Formidable team to help them fix the code.

Yes, sorry, I have since asked Formidable team through a support ticket. They have acknowledged the typo and will look into it. In the meantime, it seems to work with the following:

$wp_filesystem->put_contents( $index_path, FS_CHMOD_FILE );

Discussion closed.