thanatica2
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cannot upgrade – WP wants FTP accessI don’t expect any core developers here frequently. But moderators ever more so (hey there). Just saying.
Just don’t be impolite about it (not you, esmi). I don’t see where I insulted anyone directly before my comments were calling “whining”. I may be “just a user”, but being treated like that is uncalled for even if I was a little frustrated at the time.
Forum: Fixing WordPress
In reply to: Cannot upgrade – WP wants FTP accessI would suggest that’s the task of a developer. Asking me to do double work is another superfluous task. Yes, WP is free, but my time is certainly not worthless.
I’ve put it in Trac for now, but next time I will do either, not both. That’s just silly.
Forum: Fixing WordPress
In reply to: Cannot upgrade – WP wants FTP accessNo response, you are taking it easy.
Look, I’m reporting a problem here. If you don’t want to get it fixed, that’s your problem, not mine. But being a little bit grateful for the effort I took to report everything and even pointing out a possible solution, doesn’t kill you.
But instead, I’m whining.
You want this to be the very last bugreport from my end?
Forum: Fixing WordPress
In reply to: Cannot upgrade – WP wants FTP accessWell sorry for reporting a problem, dude. Relax. And calling it whining is disrespecting. A moderator must know better.
It’s not what *I* want, btw. It’s just plain wrong.
Forum: Fixing WordPress
In reply to: Cannot upgrade – WP wants FTP accessThe topic referenced doesn’t provide a solution, and since it was a long time ago, it made more sense to start over and give WP all the benefit of the doubt.
I was wrong, because the problem still existed, and still exists to this day. So whether or not I have reported this problem before, is irrelevant; the WP developers have done nothing to solve it.
Commenting out the line I quoted is a working solution, and I see no reason why it would cause further problems. You see, when an application has managed to create and write to a file, checking its owner is pointless. WP does not *need* to own its files, and I certainly don’t want it to.
Forum: Fixing WordPress
In reply to: Cannot upgrade – WP wants FTP accessAnd after a successful upgrade to 3.5.1, this check is still there.
It’s not neccesary, clearly.
Please remove it, dear developers.
Forum: Fixing WordPress
In reply to: Cannot upgrade – WP wants FTP accessAh. Right. I must say, I’m little little dissapointed with WP’s “logic” to determine whether a file is writable.
It seems that when it finally has managed to create and write to a file, it still isn’t satisfied and goes all out:
if ( getmyuid() == @fileowner($temp_file_name) )
To check whether the current user is the file’s owner. This cannot happen in my setup. The file’s owner is not the current user, even if that user created the file. WP should not expect this to always happen and fail if it doesn’t.In my setup, any file, no matter which user creates it, will get the owner the same as the owner of the webroot directory. The assigned group is “www” (which includes “www-data”: apache’s user). This works like a charm and does not pollute the file ownership all over the place.
Now, why does WP need to do this silly additional check, if it has already confirmed it can write to a created file??
Forum: Fixing WordPress
In reply to: Directory not writable?You’re missing the point. Using FTP or not has nothing to do with it.
The issue is that WordPress thinks the directories are not writable, but they are. This IS a WordPress issue, iyam.
Forum: Fixing WordPress
In reply to: Directory not writable?Okay, I may have discovered something here.
This is in /wp-admin/includes/file.php :
if ( ! $method && function_exists('getmyuid') && function_exists('fileo$ if ( !$context ) $context = WP_CONTENT_DIR; $context = trailingslashit($context); $temp_file_name = $context . 'temp-write-test-' . time(); $temp_handle = @fopen($temp_file_name, 'w'); if ( $temp_handle ) { if ( getmyuid() == @fileowner($temp_file_name) ) $method = 'direct'; @fclose($temp_handle); @unlink($temp_file_name); } }This is wrong, because the script check whether the newly-created tempfile is owned by the user that apache is running as. This will never happen in my scenario.
Why does a newly-created file need to be owned by the user apache is running as? I don’t want or need that, and neither does WordPress. By creating a file (and having it succeed) write-access is proven to be in order. No need to see who owns the file.
Can this please be fixed?
Forum: Fixing WordPress
In reply to: Directory not writable?Note that I can edit permalink structure and edit theme css perfectly fine. This proves the directories are writable. So why can WordPress not update itself?
What does that have to do with the address field type?
Forum: Fixing WordPress
In reply to: Slow pagesStill in development/testing phase, as you can see 🙂
This site, running on a different server, has the same problem:
http://findersbv.nl/Forum: Fixing WordPress
In reply to: Slow pagesbtw, with “performance profile from start to end” I mean the performance profile from the very first hit to the server, to the point of starting to send the first byte to the client. So everything within the serverside execution time I’d like to see, because that’s what slowing the pages down.
The validation javascript is built-in and triggers by default; you have to do some extra coding to disable it. iirc, it’s wordpress-standard filter that you can override in the PHP code of your theme.
Forum: Fixing WordPress
In reply to: Slow pagesThanks, I ran the tool and it gave me a score of 79. Some improvements are still pending, but the thing is, this tool checks for issues on the frontend. It doesn’t (and can’t) check for speed issues that exist on the server, i.e. in PHP code, MySQL, internal caching, or otherwise…
That’s why I would like to somehow get a detailed performance profile from start to end, to eliminate bottlenecks *on the server*.
Btw, I already enabled the query cache on MySQL (the WTF here is that it’s disabled by default) but it shaves off almost nothing. For now I can just eyeball the execution time from FireBug (time to first byte sent to the browser) and it did go down by maybe 10 or 20 ms.
That still leaves a whopping 480ms execution time, at least 400 of which appears to belong to WP.