billseyLCIS
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Update error, 4.4.1 to 4.4.2Temporarily I’ve regressed the site to PHP 5.6 and the upgrade completed…
Forum: Fixing WordPress
In reply to: One button update on windows 2008/IISYou have to manually edit file.php to change line 159 to:
if ( empty( $filename ) || ‘.’ == $filename || DIRECTORY_SEPARATOR == $filename ) {
and things will then work with Windows. When is this going to go into the base code?
Forum: Fixing WordPress
In reply to: Can't update to 4.2.2 Fatal Error memory size exhausted4.3.1 and the problem is not yet fixed for Windows hosts. You have to manually edit file.php to change line 159 to:
if ( empty( $filename ) || ‘.’ == $filename || DIRECTORY_SEPARATOR == $filename ) {
and things will then work with Windows. When is this going to go into the base code?
Forum: Fixing WordPress
In reply to: Fatal Error againFinally found the thread with the fix, which will likely break again with the next update…
file.php line 149:
if ( empty( $filename ) || ‘.’ == $filename || DIRECTORY_SEPARATOR == $filename ) {Remember that Windows uses a backslash separator, not the forward slash that’s hard coded into the current code.
Forum: Fixing WordPress
In reply to: Fatal Error againOK, so I did a manual update to WP 4.2.3 from 4.2.2 on the empty site and I still get the same error when trying to update the plugin.
Forum: Fixing WordPress
In reply to: Fatal Error againBeen a week or so and the problem persists. Does anyone have any idea what I can do to get it fixed?
And it looks like there’s an update to the base WordPress available, which also doesn’t install with the same error.
Forum: Fixing WordPress
In reply to: Fatal Error againHeheh, I am my host. That’s why it was so easy to bump it up to 256M from the default. The update is supposed to be happening via FTP… When I look at the FTP server log files I see that the script:
- logs in
- sets PASV mode
- NLST – tries to list the local filesystem folder for wp-content (not available since you only have relative paths from the root of the WP install)
- PWD (returns ‘/’)
- CWD – again, trying to get to the filesystem path (fails)
- sets PASV mode again
- NLST ‘/’ (succeeds)
- CWD ‘/’ (succeeds)
- PWD (returns ‘/’)
- CWD ‘/’ (succeeds)
- PWD (returns ‘/’)
- CWD ‘/’ (succeeds)
- sets PASV mode again
- LIST -a (succeeds)
- CWD ‘/’ (succeeds)
- SYST (succeeds with ‘UNIX emulated by FileZilla’)
- sets PASV mode again
- NLST – tries to list the local filesystem folder for wp-content/plugins (still not available)
- PWD (returns ‘/’)
- CWD the filesystem path for plugins
- PWD (returns ‘/’)
- sets PASV mode again
- NLST ‘/’ (succeeds)
- CWD ‘/’ (succeeds)
- PWD (returns ‘/’)
- CWD ‘/’ (succeeds)
- PWD (returns ‘/’)
- CWD ‘/’ (succeeds)
- sets PASV mode again
- LIST -a (succeeds)
- CWD ‘/’ (succeeds)
- sets PASV mode again
- NLST ‘/wp-content/’ (succeeds)
- PWD (returns ‘/’)
- CWD ‘/wp-content/’ (succeeds)
- sets PASV mode again
- LIST -a (succeeds)
- CWD ‘/’ (succeeds)
- sets PASV mode again
- NLST filesystem path to the web root (fails)
- PWD (returns ‘/’)
- CWD filesystem path to the web root (fails)
- PWD (returns ‘/’)
- sets PASV mode again
- NLST ‘/’ (succeeds)
- CWD ‘/’ (succeeds)
- PWD (returns ‘/’)
- CWD ‘/’ (succeeds)
- PWD (returns ‘/’)
- CWD ‘/’ (succeeds)
- sets PASV mode again
- LIST -a (succeeds)
- CWD ‘/’ (succeeds)
- PWD (returns ‘/’)
- CWD ‘/wp-includes/’ (succeeds)
- PWD (returns ‘/wp-includes/’)
- CWD ‘/’ (succeeds)
- sets PASV mode again
- NLST ‘/.maintenance’ (fails)
- PWD (returns ‘/’)
- CWD ‘/.maintenance/’ (fails)
- PWD (returns ‘/’)
- RMD ‘/.maintenance/’ (fails with 550 Directory not found)
- disconnects
Now, if I ignore the lack of optimization, the error hits when it tries to remove the non-existent directory called ‘.maintenance’. I assume that the existence of that directory turns on Maintenance Mode for the site. It’s possible something else is the culprit, but it hasn’t actually uploaded the new version yet at this point that I can see.
Forum: Localhost Installs
In reply to: Memory size issuesI just checked it out, even with the triple ‘=’ sign (I think that’s a bug, but I’m not a PHP guru so it might be valid) and it’s not working. I still get the error with either trying to update the Twenty Fifteen theme or trying to update the core.
And then I got a brainstorm! I’m running on a Windows server, so path names use a backslash instead of a forward slash. I changed the ‘fixed’ code from
|| '/' === $filename to
|| ‘\\’ === $filename
and it seems to have worked.