WordPress 4.7
Genesis 2.4.2
SP 5.7.3
Hi,
Have been running SP for months without any hassles. But today I’m having multiple issues. Here’s a rundown.
Yesterday I update WP to 4.7, with no apparent issues.
Today the forum was loading but it looked like none of the CSS was loading/being applied.
The forum would appear but just on a white background, layout was all over the place.
Figuring it was a CSS issue I tried clearing my browser cache, clearing the site cache, but no joy. I tried this with FF, IE, Edge, Opera and Chrome, all showed the same fourm without styling.
I wasn’t running the latest ver of SP, so I thought I’d best update as the first thing you’ll probably tell me to do is update to the latest version.
So, I started the update from within WordPress, that seemed to take a long time but reported that it was successful.
It then prompted me to upgrade the database. I went ahead with this, and again it seemed to take a very long time but reported that it was successful.
None of this fixed the issue with the forum displaying without styling.
I read through your forums again and found something about unchecking the ‘Enable combining and caching of forum CSS files’ in Options. I did this and it fixed the display issue.
However, not long afterwards the whole site stopped working, my browsers reported a 500 Internal Server error.
I checked the web server logs and it was logging lots of these :
mod_fcgid: stderr: PHP Fatal error: Call to undefined function sp_add_membership() in /var/www/vhosts/myonlinetraininghub.com/httpdocs/wp-content/themes/epik/functions.php on line 2178, referer: https://www.myonlinetraininghub.com/wp-login.php
During logon I make calls to sp_add_membership() to do certain things, and this function wasn’t being found.
So I edited my functions.php and commented out any mention of sp_add_membership(). The site would now load.
I looked at the plugins page and saw a message at the top of the screen:
“The plugin simple-press/sp-control.php has been deactivated due to an error: The plugin does not have a valid header.”
I had a look at this file via FTP and it had a file size of 0. In fact all the SP php files were 0. Something had gone wrong in the update process?
I renamed the plugins/simple-press folder to plugins/simple-press-broken, and uploaded the simple-press folder from yesterday’s backup.
Once done I reinstated my calls to sp_add_membership() in my functions.php.
The site was loading and the forum was displaying again, except I saw that some of the SP plugins were not working. Checking the sp-resources/forum-plugins folder I saw that several of the plugins also had all PHP files at 0 size. Another consequence of a failed update?
I restored these plugins from my backup too, and reactivated them.
I performed the update to SP again, and the plugins. Now running SP 5.7.3 but having various issues.
1. When logged in as WP site admin, I can’t delete posts. I use Incapsula and when I try to delete a post Incapsula displays an error page because the URL in my browser is
http://www.myonlinetraininghub.com/excel-forum/excel/%3Cscript%20type=%22text/javascript%22%3EjQuery(document).ready(function()%20%7BspjDialogHtml(”,%20’%3Cdiv%20style=%22margin:%205px;%20border:%202px%20solid%20red;%20padding:%2010px;%22%3E%3Cp%3E%3Cimg%20src=%22https://www.myonlinetraininghub.com/wp-content/plugins/simple-press/admin/resources/images/sp_Message.png%22%20alt=%22%22%20style=%22float:left;%20margin:%20-4px%2010px%200%200;%22%20/%3E%3Cb%3EAccess%20denied%20-%20security%20check%20failed%3Cbr%20/%3EUnable%20to%20complete%20the%20request%3C/b%3E%3C/p%3E%3Cp%3E%3Cb%3EPlease%20reload%20the%20page%20and%20retry%20the%20operation%3C/b%3E%3C/p%3E%3C/div%3E’,%20’Security%20Alert’,%200,%200,%20’center’,%20”);%7D);%3C/script%3E
In the Error Log this is logged:
January 6, 2017 8:41 pm | spaErrError | 1 | security
Nonce Security Alert
spForumTools: failed nonce check
action spForumTools
targetaction delete-post
killpost 1803
killposttopic 397
killpostforum 1
killpostposter 74
page 1
_wpnonce 28a1b164cd
count 2
_ 1483699268068
2. I can’t open the Admin Postbag. On the forum it shows me that there are unread posts, but when I click ‘View New Posts’ the only thing that happens is the number of Unread posts disappears, that is, if there were 3 Unread posts, the number 3 disappears. Other than that, nothing happens. I can see calls to admin-ajax.php being made, and a status of 200 being returned.
In the Error Log
January 6, 2017 7:36 pm | spaErrError | 1 | security
Nonce Security Alert
spUnreadPostsPopup: failed nonce check
action spUnreadPostsPopup
targetaction all
first 0
group 1
count 0
_wpnonce 240c086400
3. If I click on Admin Links, I get a small window with the words ‘Administration Links’ in it.
4. If I click on the Forum Tools, I get a small window with a 0 in it.
5. I can’t attach files to a post. After clicking Attachments->Add Files and selecting a file (text, Excel workbook, doesn’t matter), the file appears in the ‘Select Files’ window and it shows 1 files queued. If I click on ‘Start Upload’ it appears to upload : Status climbs to 100% but tthen I get the error message ‘Error 104 – You do not have permission to upload files’. I’m logged in as WordPress administrator. All the Storage Locations show ‘Location Found’ and ‘Write – OK’.
6. This has been logged in the Error Log
January 6, 2017 7:15 pm | 512 | 63 | php
file: /simple-press/sp-startup/site/sp-site-deprecated.php
line: 54
function: trigger_error
User Warning | The function sp_forum_api_support() has been deprecated and will be removed in a future update. Use the new function sp_forum_ajax_support() instead.
You can login to the site with the username ldtest21 and the password is H3lpM3Plz to check it out. If you need admin access let me know.
I’ve tried to provide as much useful info as I can, if there’s anything else please ask.
I’m in Australia and it’s late on Friday here. I would greatly appreciate it if there was any chance of fixing this before the weekend, assuming you won’t be working over the weekend?
Regards
Phil