Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Simple Press update to 5.5.10 Build 13317 fails
Avatar
Bart
Indiana, USA
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2015 - 3:08 am

Greetings,

Wordpress was updated to 4.3 first. Next, the Simple-Press plugin shows this information form the Plugin Dashboard:

You have version 5.6 installed. Update to 5.5.10 Build 13317. View version 5.5.10 Build 13317 details.
Compatibility with WordPress 4.3: 100% (according to its author)
Simple:Press Version 5.5.10 Release, Build 13317 is now available for download. See the changelog for complete details. Please note, this version of Simple:Press requires WP 4.3.

Yes, the dashboard has been stating that version 5.6 has been installed for some time now. The sp-control.php file shows: Plugin Name: Simple:Press, version: 5.6.

Next, try to upgrade it automatically to 5.5.10 Build 13317.   Errors out: An error occurred while updating Simple:Press: Download failed. Service Unavailable

So far no good. Next, access simple press forum and download for manual install. Gain access through cart download and replace in plugins. Across the top of each page, the following error shows while the forum disappears.

Notice: Undefined index: forum-images in /home/bartblog/public_html/wp-content/plugins/simple-press/sp-startup/site/sp-site-constants.php on line 61
Notice: Undefined index: forum-images in /home/bartblog/public_html/wp-content/plugins/simple-press/sp-startup/site/sp-site-constants.php on line 62

Upgrade Simple:Press From Version 6.0 to 5.5.10 (Build 12969 to Build 13317)
Please note: You are NOT downgrading. This upgrade corrects the version/build that inadvertently showed up as part of the 5.5.7 release.

Attempt to update again via automatic update to hopefully fix problem. But the following errors occurred:

Upgrade Aborted
current build: 12969
Notice: Undefined index: forum-images in /home/bartblog/public_html/wp-content/plugins/simple-press/sp-startup/site/sp-site-constants.php on line 61
Notice: Undefined index: forum-images in /home/bartblog/public_html/wp-content/plugins/simple-press/sp-startup/site/sp-site-constants.php on line 62
 {"status":"success","type":"upgrade","section":13000,"response":"Build upgrade section 13000 executing. Status: success
","error":""}

Here I give up, delete update, restore incorrectly marked version 5.6 to restore service.  Can someone upgrade it for me, where it should be simple (I have upgraded it multiple times), but it isn't working.

Sending login credentials to Ike, Mr. Papa and Yellow Swordfish via Private Message.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 5, 2015 - 5:07 am

I see that the older version is up and running so we can do this a little slowly. Sorry you have had a few problems here. There are three separate issues that appear to have conspired so I understand the frustration.

First up - yes the version you had been, and are once again using, did indeed, accidentally go out with the wrong header information, Hence the check in the later update. So that means you are actually using version 5.5.7 and that issue was described in our post at https://simple-press.com/simpl.....lable-now/

The 'Service Unavailable' issue when trying to download has actually happened to 2 or 3 people. This is our server issuing a 503 status. The large majority of users have had no problem reaching our server but clearly some sort of intermittent issue is going on. I would normally suspect an overload of visitors at one time but we do not think that is the issue. This one, I am afraid, is still under investigation. These things are often so much simpler to diagnose when it effects everyone!

The more important issue is the last one which is the failure to upgrade. I can see from the numbers that this is an immediate error condition. I have to say that if we attempt this we will encounter the same issue.

So I need to explain what the issue is exactly as the fix will have to come from you - or - more probably - your hosting company.

The issue is those two Notices being displayed. While Notices are largely unimportant and more of an irritant than anything, in this case they are negatively effecting the return status codes of the upgrade causing it to fail. Sadly those two are virtually unavoidable at that point in the upgrade.

But - such notices (or Warning and Errors) should never be displayed to the screen, It is considered very bad practice on a public facing website as it can disclose path information that can aid those maliciously minded amongst us. It is useful for a site under development but not for an active site and it should be turned off. This has to happen in your php.ini file on your server. If you have access to this then you can do it yourself but mostly it needs to be done by your hosting company. They should not have had it set to display in the first place of course. Bad, bad practice.

I have actually, while writing this sadly long response, opened a note here to see if we can programatically turn of error display during the upgrade process but that is not an ideal solution.

I think you will find that if your host makes this vital change and restarts your server then the upgrade will complete as it should. At least it has for all other users as far as we are aware.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Bart
Indiana, USA
Member
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2015 - 4:51 pm

I lease a dedicated server that is peaked with excessive configurations (1G versus 100MB per account, 32MB RAM, Xeon W5580 processor, SATA drives, etc.). I am the host with multiple accounts, develop sites and systems.

It is a managed server, therefore this is response from the server technician:

I believe the message you sent along is referring to the 'display_errors' setting, which is actually set to Off in the main php.ini file. If the user has a local copy that has it turned on, however, it'll override the global setting.

I never use .htaccess or a custom php.ini file to override server settings. All accounts are referencing the server settings, however the errors are still fully displayed across the top of the website. The error log at /public_html/ populates and it too contained the same error messages.

Attached is the PHP.ini in a ZIP archive, which doesn't exploit my server, for your review.

What next?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 5, 2015 - 6:16 pm

strange, because any notices or warnings being displayed (the actual display, not the cause) is completely beyond our control and is totally up to the server...  and unfortunately corrupts the upgrade ajax response...

at this point, and odd how its unique to you, I would go into the sp-site-constants.php file and try commenting out lines 61 and 62...  then run the upgrade... and then uncomment out those lines...

and just an fyi, but 5.5.11 was released today too... but once you get the upgrade to 5.5.10, you wont see the notices any further...

Avatar
Bart
Indiana, USA
Member
Free Members
sp_UserOfflineSmall Offline
Sep 6, 2015 - 2:04 am

Greetings,

I did notice later in the wp-config.php file, the setting define('WP_DEBUG', 1);. After looking up this specific php constant here: https://codex.wordpress.org/De....._WordPress it appears that having this setting set to 1 or true will 'Enabling WP_DEBUG will cause all PHP errors, notices and warnings to be displayed.' This setting was interfering with the display_errors setting in the php.ini.

The following setting in the /home/xxxxxxx/public_html/wp-config.php file had been changed from: define('WP_DEBUG', 1); To: define('WP_DEBUG', 0);

After doing so, I manually downloaded 5.5.11 from the cart, and then manually replaced. Updated the database and now all is well! Thanks for your assistance.

As a note, I still could not update the base code or the simple:press plugins automatically anymore. All the other plugin updates, not a problem. I tried to update the Simple:Press plugins after the successful 5.5.11 install, and the same error shows: An error occurred while updating Post Ratings: Download failed. Service Unavailable.  I checked file permissions on the wp-content folder, and it is set to 755.

I then tried adding this line at the top of the root file: wp-config.php

/* Setup a temporary folder for uploading and updating */ define( 'WP_TEMP_DIR', ABSPATH . 'wp-content/tmp/') ;

To force the temp directory update to a unique subfolder and that worked. Something is amiss with the Simple:Press updates after 5.5.10.

Steven

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 6, 2015 - 3:42 am

That would have been one of my next suggestions. Was not my first because it is so unusual to see a user who has that directive either off or on!

Good news on the upgrade. Thanks for updating the topic here,

andy-signature.png
YELLOW
SWORDFISH
Avatar
Bart
Indiana, USA
Member
Free Members
sp_UserOfflineSmall Offline
Sep 8, 2015 - 1:38 am

I was checking back to see if I can gain help from the above inquiry (Post #5, Paragraph 4), where any attempt to update a plugin for Simple:Press results in: An error occurred while updating [Plugin Name]: Download failed. Service Unavailable

I need to update Post Ratings to 1.5.6, Private Message System to 2.1.15, Search to 1.1.5 and Subscriptions to 1.4.12 but cannot find a direct download for those.

Is there any way to gain a archive with those plugin archived and resident for installation?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 8, 2015 - 3:33 am

You appear to be one of 3 users experiencing the 'Service Unavailable' issue - at least as far as informing us in concerned. We did check last night with another user that there is no blacklisting of IP addresses involved. So we are somewhat stumped at the moment.

This is a long way from my area of expertise but it might be useful to know what elements all three of you have in common. I was going to ask all three of you if you could possibly check with your hosting support - sending them the update url - in case they can provide a logical explanation.

Meanwhile - I am sorry you have to do this the old fashioned way. Oh how moving technology has caused us all to forget! 🙂

All plugins, themes, core etc., are available for download from our store. Click on the store menu item, then follow plugins - find the one you need and select the group, find the plugin you need and click on the name or image and you will get to the download page where you can download it and then install it manually. A little more long-winded than it used to be I know but you will end up with a download link and a zero dollar invoice!

andy-signature.png
YELLOW
SWORDFISH
Avatar
Bart
Indiana, USA
Member
Free Members
sp_UserOfflineSmall Offline
Sep 8, 2015 - 4:40 am

Hello,

I inserted a short script in my themes functions.php to capture error messages during plugin updates, but no log was generated.  Meaning there is no Wordpress or other plugin related conflict.

It is something about the URL string that is not fetching the archive. For example:

https://simple-press.com/downl.....wpupdate=1
An error occurred while updating Post Ratings: Download failed. Service Unavailable

If I insert that direct string as a URL, it will not open or download anything in Internet Explorer 11. I tried again while logged into Google Chrome version 45, to update the plugin "Post Ratings" from the Dashboard, same error message. When I paste the URL, the "post-ratings.zip" file immediately downloads to my local "Downloads" folder. Of course, Chrome and Firefox are far more user friendly when downloading files from a link, than is Internet Explorer.

Same results when attempted in Firefox version 40.2. Error message, but download possible from direct URL. I don't use any exotic browser plugins in any browser.

There is a disconnect between the file download and getting it the Wordpress update directory. The updates are simply not downloading Simple:Press updates only. The only change since the last successful Simple:Press update was Wordpress was updated from 4.1.7 to 4.3.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 8, 2015 - 5:51 am

We understand all of this and also understand the frustration and want to get to the bottom of it. The question remains why 3 users out of X hundreds of users?

Which is why I was seeing if we could try and determine common factors and suggested we start by asking your host support. We do not expect this to be a conflict with another plugin or anything like that. It is far more likely to be a sever issue of some sort. Do your server logs have any further information as they sometimes do?

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626