ktula
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Comment Error On All Commentseracc, just disable “live commenting” for the Unnamed option. It’s working for me after i disabled it.
Forum: Fixing WordPress
In reply to: Comment count.Since upgrading to WP 2.0 (now on 2.0.2), some of my posts have indicated that they have 1 comment but in fact there was not any. Not sure what is updating the database. I have to update MySQL DB and remove the incorrect comment count, like this:
mysql> update wp_posts set comment_count=0 where ID=215;
where ID is the post ID.
Forum: Fixing WordPress
In reply to: How does WordPress 2.0.1 determines when to create a thumbnail?Ok, that did it. I recompiled GD to make sure it included the jpeg library and after that, i recompiled php. WP is now able to create thumbnails for jpg.
Thanks a lot for all your help!
Forum: Fixing WordPress
In reply to: How does WordPress 2.0.1 determines when to create a thumbnail?I have tried uploading smaller jpg (smaller file size and also smaller resolution) but nothing works. jpg seems to be the only image format not work – png and gif are ok.
Forum: Fixing WordPress
In reply to: How does WordPress 2.0.1 determines when to create a thumbnail?You must have been on my site when i turned on debugging in php.ini 🙂
I was able to determine that no thumbnail was created when i tried to upload the jpg by looking at the uploads directory. Also, there is no option on the uploaded image itself to select either “using original” or “using thumbnail”. When i click on the image for option, it said “no thumbnail”.
Forum: Fixing WordPress
In reply to: How does WordPress 2.0.1 determines when to create a thumbnail?I have the latest stable WP, 2.0.1. Looking at the code, WP is using the PHP function getimagesize to determine the size of the image. I wrote a simple script that basically does what inline-uploading.php does and i am able to verify that getimagesize is able to get the size of the “problematic” jpg file that i have been trying to upload. So i am not really sure why WP is able to convert the png version of the file but not the jpg version.
Forum: Fixing WordPress
In reply to: Upload images in WP2 problemboneless:
I think WordPress is trying to organize your upload by Year/Month. When you said your “files” folder is already 777, how do you know so? In a UNIX-based system, if a directory (or folder) has a permission of 777, that means everyone on the system is able to make changes in that particular folder. So i am not really sure why WordPress is not able to create the sub-folders under “files”.If you are only accessing the system via FTP, i do not think it is possible to change the ownership of the directory (folder). But if you can somehow access the system using either telnet or ssh, this is how you change ownership:
chown webuser.webuser files
This will change the ownership of the “files” directory to be owned by the “webuser” user, and the “webuser”group.
I am not familiar with any web servers running on windows system, but if your web server runs on a UNIX-based system, and your web server software is Apache, then it is possible to find the owner of the web server processes by doing this:
ps -ef |grep httpd
You might see this:
# ps -ef|grep httpd
root 1911 1 0 Jan18 ? 00:00:01 /usr/local/apache2/bin/httpd -k start -DSSL
web 19049 1911 0 Jan23 ? 00:02:24 /usr/local/apache2/bin/httpd -k start -DSSL
web 19059 1911 0 Jan23 ? 00:02:25 /usr/local/apache2/bin/httpd -k start -DSSL
web 19062 1911 0 Jan23 ? 00:01:17 /usr/local/apache2/bin/httpd -k start -DSSL
web 25455 1911 0 Jan23 ? 00:01:09 /usr/local/apache2/bin/httpd -k start -DSSL
web 25480 1911 0 Jan23 ? 00:00:47 /usr/local/apache2/bin/httpd -k start -DSSL
web 5337 1911 0 10:45 ? 00:00:16 /usr/local/apache2/bin/httpd -k start -DSSL
web 5338 1911 0 10:45 ? 00:00:15 /usr/local/apache2/bin/httpd -k start -DSSL
web 5339 1911 0 10:45 ? 00:00:15 /usr/local/apache2/bin/httpd -k start -DSSL
web 6797 1911 0 12:41 ? 00:00:18 /usr/local/apache2/bin/httpd -k start -DSSL
web 6798 1911 0 12:41 ? 00:00:11 /usr/local/apache2/bin/httpd -k start -DSSL
web 6818 1911 0 12:43 ? 00:00:10 /usr/local/apache2/bin/httpd -k start -DSSL
web 6819 1911 0 12:43 ? 00:00:11 /usr/local/apache2/bin/httpd -k start -DSSL
web 6832 1911 0 12:43 ? 00:00:12 /usr/local/apache2/bin/httpd -k start -DSSL
web 6839 1911 0 12:44 ? 00:00:10 /usr/local/apache2/bin/httpd -k start -DSSL
web 6845 1911 0 12:44 ? 00:00:11 /usr/local/apache2/bin/httpd -k start -DSSLThe first column is the owner of the httpd processes. You see the first process is owned by the “root” user and everything else is owned by the “web” user.
The “chown” command might not work if you do not have root privileges.
Forum: Fixing WordPress
In reply to: “Send to editor” does not work in IE/Firefox (Mac or windows)I bring up the “JavaScript Console” in Firefox and noticed these errors when i was trying to click on the “send to editor” function for my image:
Error: win.edInsertContent is not a function
Source file: http://…../wp-admin/inline-uploading.php?action=view&post=14&all=true
Line 142Error: syntax error
Source file: javascript:void()
void()Forum: Fixing WordPress
In reply to: Upload images in WP2 problemWhat you can do is change the ownership of the “uploads” directory so that it is owned by the web server process. My apache web server processes are owned by the “web” user so i just changed the ownership to the “uploads” directory to be “web”.