Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image upload failures after server PHP update
#25
(2017-04-25, 21:51:43)hameau Wrote: Oh, my! What have you inherited? (Aside: if you wrap code with the tags [ code ] ... [ /code ] – leave out the spaces – you get a much more readable result.)

If you haven't already, make a full backup of what you have at the moment (e.g., ftp to your computer).

That sa_welcome.php file is clearly a hacked-together plugin to provide custom tabs for managing litters, but without much finesse. At least remove the closing php tag at the end of the file and change the plugin name and description to something relevant.

You have two versions of the Item(s) Manager, which is unlikely to be a good thing. Disable one of them (probably the older one – but you may not be able to go back).

Disable non-essential plugins:
  • Custom Admin CSS
  • (Innovation theme plugin – depending on the theme requirements, you may have to enable this again)
  • SA PageTime Plugin
  • Theme Highlighter
You still have a couple of outdated plugins, so bring those up to date.

I have no experience of the Items Manager plugins, so I can't help you there. I don't know what the implications are of having two versions installed.

If this site were my responsibility, I'd look at migrating the existing content to a fresh installation of GS, but there may be other customisations under the skin, so it's going to be a risky business. Good luck!

@Bigin: those lines are already in the file.

Edit to add: Crossed with Shawn's post. @shawn_a: how could you! ;P

(2017-04-25, 22:07:57)shawn_a Wrote: Did you try just turning off php errors display? Or did you enable them to debug the actual issue? Errors rather notices and warnings are not errors but they will break cookies and ajax if you have them enables on production sites

(2017-04-26, 16:59:14)Bigin Wrote: I think it could be a bug in PHP 5.6. The warning corrupting the json response in your uploader.php
The error means: you are sending an empty request. This error occurs when requests with empty parameter is passed.

Solution:
If you are using CGI you have set always_populate_raw_post_data = -1 in the php.ini
Or put the following lines in .htaccess file:

Code:
<IfModule mod_php5.c>
   php_flag always_populate_raw_post_data -1
</IfModule>


And keep php error reporting turned off, items manager and other plugin is still bugged as hell.

Which .htaccess file?  The one in the gs root?  I tried it there, but to no avail...  Undecided
Reply


Messages In This Thread
RE: Image upload failures after server PHP update - by gsimon - 2017-04-27, 00:09:12



Users browsing this thread: 1 Guest(s)