Forums

[resolved] PHP Error with Theme (4 posts)

  1. EatonZ
    Member
    Posted 2 years ago #

    Hi, I recently installed the popular Mystique theme on my site hosted on a Windows server.

    It has an option to change the logo image. So I go to do so, but I am presented with this: http://img249.imageshack.us/img249/8298/capturehc.png

    However, I had a Linux server before and it worked fine on that server.

    Now when I save the settings, it directs me to here: http://fatxplorer.eaton-works.com/wp-admin/themes.php?page=theme-settings&error=3

    See how it is error 3? According to the script, it failed to upload/move.

    Here is the script itself: http://www.mediafire.com/download.php?mmmwmmtifto

    All I want is to set the freaking logo image.. It shouldn't be this hard. I have tried modifying the script, but I know virtually no PHP so I had no success.

    If anyone can modify it to work or tell me how to make it work, I would appreciate it.

  2. Mark / t31os
    Moderator
    Posted 2 years ago #

    Did you edit the functions file? Remove some translation related functions / code from it at all?

    Doesn't do that here on a fresh installation of the theme (downloaded it to test).

    There shouldn't be a problem with them unless you've removed some code from the functions file that is required for the text to translate correctly.

    If you'd rather just fix those lines, open up the theme-settings.php , goto lines 370 - 372, and replace this..

    1 => _("Please upload a valid image file!","mystique"),
           2 => _("The file you uploaded doesn't seem to be a valid JPEG, PNG or GIF image","mystique"),
           3 => _("The image could not be saved on your server","mystique")

    with..

    1 => "Please upload a valid image file!",
           2 => "The file you uploaded doesn't seem to be a valid JPEG, PNG or GIF image",
           3 => "The image could not be saved on your server"
  3. EatonZ
    Member
    Posted 2 years ago #

    Thanks for the reply. I did not change anything in the code.

    When I save the settings now, I get: "Error: The image could not be saved on your server."

  4. EatonZ
    Member
    Posted 2 years ago #

    I FIXED IT!!!

    It was a problem with the write permissions.

    Thanks for the help! Glad this is out of the way..

Topic Closed

This topic has been closed to new replies.

About this Topic