• Resolved adamglatt

    (@adamglatt)


    I had to re-install wordpress. Everything works except for WP Control. I cannot edit previously added cron jobs, and I cannot add new php cron jobs. I get the following error message:

    “You cannot add, edit, or delete PHP cron events because your user account does not have the ability to edit files.”

    I’ve double and triple checked wordpress permissions. WordPress is run as www-data, and that user/group has read/write access to all files/folders in the website directory and subdirectories.

    I’ve also tried un-installing the plugin and re-installing. Any ideas?

    Also, I did try another cron plugin (I forget the name). That plugin did allow me to delete a cron job I had previously created with WP Control (that I couldn’t delete with WP Control).

    Edit: I should also note, that running the php I want to make into a cron event runs fine when executed on its own.

    • This topic was modified 7 years, 1 month ago by adamglatt.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    This error message refers to your WordPress user account, not your server user account.

    It means that your user account in WordPress does not have the ability to edit files (for example, to use the plugin editor or the file editor). This capability is required in order to manage PHP cron events as otherwise this would allow users to execute PHP on the site when they should not be able to.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    In a future version I’ll clarify the message here so it’s more clear.

    BTW,
    For me I got it resolved by temporarily turning ninjafirewall off.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t add new php cron job’ is closed to new replies.