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
Typo in Move and rename files PHP example
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
December 18, 2018 at 6:06 am
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.
December 18, 2018 at 8:38 am
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.