View Full Version : I can't upload images
mimi_mtl
11-20-2006, 12:15 PM
Hi,
I spent a long time checking the threads about image uploading problem and found one similar to mine. The member managed to solve the problem with the help of other members so I sent my question as a reply to this thread, nobody replied. So I am sending my thread again, as a new one, hoping someone will help. It is really frustrating and I have no clue about what to do. Please help :)
I have been using pixelpost at least for 6 months and haven't encountered this problem before. After 2 weeks of not uploading images, I tried to upload a couple and I got a red box at the end of the 'new image' page. There is no message it is just a red box with the word 'error' inside.
Somebody else had the same problem, check out the link: http://forum.pixelpost.org/showthread.php?t=4827
I changed check_upload in function as GeoS suggested and tried to upload another picture. But still getting the red error message box.
My pictures are always JPEG's and 72dpi. I have more than enough space for the files with my hosting.
What do I need to do?
Thanks in advance for your attention and reply!
and...
This is my website: www.iremharnak.com and here is my general info:
Pixelpost Information
You are running Pixelpost version 1.5 - April 2006
Latest pixelpost version: Check
Looking for help or want to give feedback, please step into pixelpost forum.: www.pixelpost.org/forum/
Host Information
URL http://www.iremharnak.com/admin/index.php
PHP-version 4.4.4 (Pixelpost's min requirement: PHP version: 4.3.0 )
MySQL version 4.1.18-standard-log (Pixelpost's min requirement: MySQL: 3.23.58 )
GD-lib bundled (2.0.28 compatible) with JPEG support
File Uploads to pixelpost site are possible.
Server Software Apache
EXIF Pixelpost is using exifer v1.5 for EXIF-information.
Paths
Guessed imagepath: /home/users/web/b2184/pow.iremcanharnak/htdocs/images/
Configured Imagepath: ../images/
Image Directory: OK - Can we write to the directory? YES. CHMOD: 0777
Thumbnails Directory: OK - Can we write to the directory? YES. CHMOD: 0777
Language Directory: OK
Addons Directory: OK
Includes Directory: OK
Templates Directory: OK
austriaka
11-20-2006, 03:21 PM
After changing the check_upload() you should see an error string in that error box. What does it say?
Are you sure you did upload the correct version of functions.php to your server? Are you sure not to have the old version cached? (Empty the cache and try again)
mimi_mtl
11-20-2006, 08:54 PM
When I tried to upload another image after I changed that detail on functions.php and sent it through ftp to my site, I had an error message saying something like missing title and description in the red box. Today I tried to upload again and I failed. There is the same red error box saying nothing but 'error'.
Could you explain a little bit more what you mean by 'cached the old version'? The functions that I have came with the pixelpost package I downloaded and I believe it is the latest version. I opened it, copied and pasted the message GeoS wrote on the functions.php.
How can I empty the cache?
Thanks a lot!
CTRL+F5 or CTRL+R or Tools -> Internet Options -> Temporary internet files -> Delete files (for IE) and Tools -> Options -> Advanced -> Network -> Clear now.
austriaka
11-21-2006, 07:53 AM
When I tried to upload another image after I changed that detail on functions.php and sent it through ftp to my site, I had an error message saying something like missing title and description in the red box.
If you upload an image via "new image", for what reason do you need ftp?
If you upload an image by ftp, there is no title and description, right. And it is not in database too... unless you put it into database using copy folder addon. I cannot follow what you actually did.
Could you explain a little bit more what you mean by 'cached the old version'?
When you open a website in your browser, it usually gets cached in your local pc. You can tell your browser how pages should be opened: from cache (quick), only from web if changed or always from web (slow). But even if you tell him to open always from web, he often doesn't do, esp. if it is a "on-the-fly" produced site like it is in Pixelpost.
So it can happen that you upload a changed version of functions.php but your browser opens the site out of the cache instead of getting the new version from web and shows no difference.
GeoS has described how to force browser to reload from web and/or empty the cache
mimi_mtl
11-21-2006, 04:46 PM
Thanks for your replies :)
I cleaned the history and tried to upload another jpeg file (72dpi) and the same thing happened: Red error box.
I didn't use the ftp to upload the picture, I always use the 'new image' on the admin page for that.
The reason I mentioned ftp was only to tell you guys the things I did to fix the problem. Sorry for being confusing:(
I used ftp to send the new functions.php to my server.
Here is what I added to the functions:
function check_upload($string)
{
global $admin_lang_pp_up_error_0, $admin_lang_pp_up_error_1, $admin_lang_pp_up_error_2, $admin_lang_pp_up_error_3, $admin_lang_pp_up_error_4;
$error_explained = array(
"0" => "$admin_lang_pp_up_error_0",
"1" => "$admin_lang_pp_up_error_1",
"2" => "$admin_lang_pp_up_error_2",
"3" => "$admin_lang_pp_up_error_3",
"4" => "$admin_lang_pp_up_error_4"
);
$result = $error_explained[$string];
return($result);
}
But that didn't solve the issue.
Any suggestions?
Thanks!
Irem
It looks like you have problems with permissions or other. Please use this:
function check_upload($string)
{
global $admin_lang_pp_up_error_0, $admin_lang_pp_up_error_1, $admin_lang_pp_up_error_2, $admin_lang_pp_up_error_3, $admin_lang_pp_up_error_4;
$error_explained = array(
"0" => "$admin_lang_pp_up_error_0",
"1" => "$admin_lang_pp_up_error_1",
"2" => "$admin_lang_pp_up_error_2",
"3" => "$admin_lang_pp_up_error_3",
"4" => "$admin_lang_pp_up_error_4",
"6" => "Missing a temporary folder.",
"7" => "Failed to write file to disk."
);
$result = $error_explained[$string];
return($result);
}
PS @DevTeam: SVN updated.
mimi_mtl
11-22-2006, 02:33 AM
Hi again,
I changed the function code and now both my website and admin page are down:confused:
There is no error message, I just can't reach those pages, they are blank.
Any other suggestions?
Thanks a lot!
Irem
mimi_mtl
11-22-2006, 02:35 AM
Actually right now I tried again to reach the admin page and here is the message I get:
Page not found
The page you are looking for might have been removed,
had its name changed, or is temporarily unavailable.
--------------------------------------------------------------------------------
Please try the following:
If you typed the page address in the Address bar, make sure that it is spelled correctly.
- Click the Back button in your browser to try another link.
- Use a search engine like Google to look for information on the Internet.
--------------------------------------------------------------------------------
HTTP 404 - File not found
austriaka
11-22-2006, 06:08 AM
I see a blank page when going to http://www.iremharnak.com/.
Please have a look at the last code sniplet GeoS posted: it is only the beginning of the function, not the end. Perhaps these lines are missing in your functions.php?
$result = $error_explained[$string];
return($result);
}
Insert them after the code GeoS posted yesterdy.
If this is not the reason I'm afraid you have to upload the whole pixelpost again (excepting images and thumbnails folder) and start from beginning.
mimi_mtl
11-22-2006, 12:29 PM
Problem solved!
The website is working now!
Thanks a lot for your help:)
austriaka
11-22-2006, 02:13 PM
and what was the solution?
Im also interested where was the problem?
elephus
02-03-2009, 09:29 AM
i am new to this pixelpost thing
mine problem is this
following error comes, though my internet is fine
and function.php has those above lines , please help me out
Error!
Connection closed by remote server
You tried to access the address http://stamva.com/gallery/admin/index.php?x=save, which is currently unavailable. Please make sure that the Web address (URL) is correctly spelled and punctuated, then try reloading the page.
Make sure your Internet connection is active and check whether other applications that rely on the same connection are working.
tanjatiziana
02-05-2009, 08:15 AM
After years of using pixelpost, I logged into admin tonight to upload a new photo and got that same error. After i hit "upload" the New Image page gives me an ERROR in a red/orange stripe at the top. No details. I haven't changed a thing on my server since yesterday - so I'm at a total loss as to what could be wrong.
tanjatiziana
02-05-2009, 08:47 AM
Tried to update the functions check upload code, and now the Admin panel is not accepting my login/password! It just re-loads the login page.
Have uploaded my old functions back, but it is still locking me out right now. Try again and again to re-upload the old file and clear my cache. Nothing.
austriaka
02-05-2009, 08:58 AM
Plz delete your cookies and try again.
If you manage to enter you administration panel again but still have the error when uploading images, turn off all Addons and try again. If it is working now, turn them on again (one by one) to find out which one makes the upload fail.
Does your blog still work at the user side?
If you ever change a php file, make sure you save it in UTF-8 encoding, with Unix Line Endings (LF) and without BOM.
If it is still not working, download a fresh Pixelpost package and upload all files again.
IMPORTANT:
Keep these original files and folders untouched:
pixelpost.php
images folder
thumbnails folder
template folder
tanjatiziana
02-05-2009, 09:01 AM
I've deleted the cookies/cache/etc and it still won't let me in. It doesn't say the password is wrong, it just reloads the login page again.
The blog still works on the user side, yes.
I just edited the PHP in Dreamweaver as that usually does the job right automatically. :S
I guess I can try a total re-install. DAH.
tanjatiziana
02-05-2009, 09:17 AM
Uploading fresh files (except for those originals to be left untouched) has rendered my site offline. At least I know it can't get worse.
Connect DB Error: Can't connect to MySQL server on 'mysql49.secureserver.net' (4) Cause #2
tanjatiziana
02-05-2009, 10:14 AM
UPDATE:
So, I took the advice to the next step and actually did a full re-install of Pixelpost (latest version). It was completely successful and brought my blog back ONLINE, but I still can't log into my Admin panel.
After I submit username & password, the login page simply refreshes itself... going nowhere.
tanjatiziana
02-05-2009, 06:03 PM
Alright, I've managed to get everything in order again and I'm back to square one - same problem as before I made all the suggested changes:
When I upload a photo, I am given a red/orange bar that says "ERROR" on the New Image page. Pixelpost will not accept an upload. Tried different images including one I've already posted this week and nothing works.
As mentioned before, I've been using pixelpost for ages and never had this error show up. Desperately seeking advice.
tanjatiziana
02-05-2009, 07:19 PM
Still trying to crack this despite no response...
In going through other Admin areas, I noticed something else that might somehow be a clue?
When I go into the Comments section to delete some Akismet spam, it automatically displays 10 comments. Usually, I go to the bottom, change "10" to "100" and proceed to delete everything at once. Except now, it isn't accepting the change, it just reloads 10 comments, not 100. So perhaps Pixelpost is not accepting the contents of the forms/buttons somehow? Is that possible?
tanjatiziana
02-05-2009, 09:28 PM
checking in on this lonely thread...
Still a red upload error despite all trials.
What I AM able to do is edit the content of the last successful post. Smooth and easy like it should be. I've added text to let viewers know what's going on.
Now I'm officially out of ideas. Hoping someone else has got a few.
el_extranjero
02-07-2009, 09:35 AM
Hello. This is the second tine when I tell the same think. Please, I need some help with this. Please look at this picture:
http://800pixeli.wordpress.com/files/2009/02/pixelpost.jpg
HOW CAN I UPLOAD PICTURES???
tanjatiziana
02-07-2009, 11:43 PM
Hey there.
That's the exact problem I was having. Unfortunately, I couldn't get any help in this forum and every other post I found about it seemed to go unresolved, so I just kept trying everything and finally cracked it yesterday.
This is what worked for me:
Log into your phpAdmin panel on your server, click on your database in the list and then have a look at list of database tables it displays for you. If you notice that any of the rows have "Overhead", then click on those rows and "Optimize" them. This will optimize your tables by removing any holes that are caused by your deleting spam, posts, etc.
I did this and INSTANTLY was able to post to my blog again.
Good luck.
Tanja
www.doublecrossed.ca
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.