• Hi, i can’t upload php files with Theme File Editor or File Manager in my theme. This last one allow me upload CSS files, or new PHP files without content, or with little content. If the file has too much code, the Theme File Editor throws me this error, “Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP” and the File Manager Plugin throws me an error saying “Error to connect to the backend” or something like that. I found a similar post, but wasn’t work for me. My ip was unbanned by GoDaddy but wasn’t work

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • It seems like you’re experiencing difficulties uploading PHP files using the Theme File Editor or File Manager in your theme, and you’re encountering errors when trying to upload files with a large amount of code. Additionally, you mentioned that your IP was unbanned by GoDaddy but the issue persists. I’ll provide some possible solutions for you to try:

    1. Split your PHP file: Since you’re encountering issues when uploading files with a large amount of code, try splitting your PHP file into smaller sections. This may help avoid the error you’re experiencing. Divide your code into logical parts and upload them separately using the Theme File Editor or File Manager.
    2. Increase file upload limits: It’s possible that the upload limits imposed by your hosting provider are causing the issue. You can try increasing the file upload limits in your PHP configuration. Access your hosting account’s control panel or use an FTP client to locate the “php.ini” file, and look for the following settings:

    upload_max_filesize

    post_max_size

    max_execution_time

    Adjust these values to higher limits that accommodate your file size. Remember to restart your server after making these changes.

    1. Use an FTP client: As suggested by the error message, you can manually fix and upload the file over FTP. This involves using an FTP client such as FileZilla or WinSCP to connect to your website’s server and upload the PHP file directly to the appropriate directory. This bypasses any restrictions imposed by the Theme File Editor or File Manager plugins.
    2. Check file permissions: Ensure that the directory where you’re trying to upload the PHP file has the correct file permissions. It should typically have write permissions (e.g., 755 or 777) so that you can upload files to it. You can usually adjust file permissions using your FTP client or the file manager provided by your hosting provider.
    3. Disable security plugins: If you have any security plugins or firewall settings enabled on your website, they may be blocking the upload of PHP files. Temporarily disable any such plugins or security features and try uploading the PHP file again. If it works, you can then reconfigure the security settings to allow PHP file uploads while maintaining necessary security measures.
    4. Contact your hosting provider: If none of the above solutions work, it’s advisable to reach out to your hosting provider’s support team. Explain the issue you’re facing and provide them with specific error messages. They should be able to investigate the problem further and assist you in resolving it.

    Remember to always keep a backup of your website files before making any changes, especially when dealing with sensitive files like PHP scripts.

    • This reply was modified 1 year, 4 months ago by albertmoore.
Viewing 1 replies (of 1 total)
  • The topic ‘Can’t upload php files with Theme File Editor o File Manager’ is closed to new replies.