• Resolved sama55

    (@sama55)


    Error is shown when updating added file.

    Error message:
    Sorry, that file cannot be edited.

    It seems that it is because there is no such file in the array of the second parameter of validate_file_to_edit() function.

    Is this a free version limit?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mdempfle

    (@mdempfle)

    No – this is not a limit. I’ll check what could be the problem. Where does this happen? In the top section where the additional files are listed?

    Best, Michael

    Thread Starter sama55

    (@sama55)

    Reproduction process:
    1. Go to “Advanced iFrame” > “Add/Include files” tab > “Existing additional files”
    2. Create file (e.g. style.css) with “Create custom file” button
    3. Click “Edit/View” link of “custom_style.css”
    4. “Sorry, that file cannot be edited.” message is shown.

    Supplementary information:
    New folder (advanced-iframe-custom) is created under “wp-content/plugins/” folder on my environment (Windows localhost). Your program seems to be concerned about folder creation. If custom files are created in your plugin folder, problems may not occur.

    Do these pieces of information help for investigation?

    Plugin Author mdempfle

    (@mdempfle)

    I have found the problem. WordPress has made the editor more strict.

    I have changed the code that the editor now works again. It locks a little bit strange as now the custom filder is treated as inactive but the edit works fine again.

    I will update the version tonight.

    Best, Michael

    Thread Starter sama55

    (@sama55)

    I confirmed that error was solved in V 7.3.2.
    Thank you for your effort!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Update error of “Add additional files”’ is closed to new replies.