My photos become blank images when uploaded

Permalink
Hi,
I am currently working on a website for a student organization that takes lots of photos. It was a common consensus that everything taken should be uploaded to the website so that people could download the ones they liked. I recently uploaded the first file of pictures; the computer said successfully, but no thumbnails were generated and anytime I go to view them, they appear as blank white boxes. I have checked the allowed formats and do not know what else to do.

Thanks for any help, I am really up a creek without a paddle at this point.

 
cmerritt replied on at Permalink Reply
cmerritt
Hi,
Can you supply a bit more info on what is happening.
Are the images blank in file manager?
What size are the image files?
Do the file sizes of the uploaded files match the originals?
A step by step description of what you are doing.
SuperNova replied on at Permalink Reply
SuperNova
It happen to all the images?
May the 'files'-dir including subdirs don't have write permissions.
npie314 replied on at Permalink Reply
ok,
So I open the site, go open the file manager, click upload multiple files. I highlight the pictures I want, and click upload. The files all "upload". In file manager, I see all of the file's information, file type, size etc, but no thumbnail. I click on the file, click view, and it brings up a view window with nothing in it, just a blank white screen.

Image files are around 2 megabytes, sizes in the editor match that of the original.

Thanks for the support.
cmerritt replied on at Permalink Reply
cmerritt
Could I have the URL To have look at the site.
Are the images JPGs?
npie314 replied on at Permalink Reply
http://www.nvscienceolympiad.org/

Yes the images are all jpegs.
mhawke replied on at Permalink Reply
mhawke
You say that the images are around 2 meg. What happens if you upload a smaller image, say 500k or so? Do they work.

I'm wondering if the upload script is timing out before the large image is fully uploaded.
npie314 replied on at Permalink Reply
Ive tried using different image sizes, formats to no avail. Everything I upload gets processed but leaves no content on the site. Word documents and Pdfs as well, I've tried to upload all sorts of file formats and nothing appears to actually upload.
mhawke replied on at Permalink Reply
mhawke
SuperNova mentioned earlier to check to make sure your [root]/files folder on your server has write permissions set. You have to do this through your host's file manager, not through concrete5.
tallacman replied on at Permalink Reply
tallacman
They aren't CMYK or LAB are they?
SuperNova replied on at Permalink Reply
SuperNova
What about special characters like "&" in the file/dir-names or file association 'filename.JPG' instead 'filename.jpg'?
coldsol replied on at Permalink Reply 4 Attachments
coldsol
I do have the same problem on 5.6.0.2; had the same issue on 5.6.0.1 as well. I red in other posts this bug would be fixed with the new version, but it isn't.

Changing permissions to 777 & the rescan doesn't help.
In file manager thumbnails (even the samples from concrete5) are not showing and pictures on live site and in edit mode are not showing as well.

I am using chromium and firefox - both browser are not showing the pictures.

I am new to C5 and would appreciate a bit more "how to do for dummies". I also attached screen shots.

Any ideas?
mhawke replied on at Permalink Reply
mhawke
Have you checked to make sure the 'GD' library/extension is included in your PHP config? I had a client that set up their own VPS server and didn't add the GD extension to their setup and they had similar problems. To check, visit "Dashboard->System and Settings->Environment" and have a look in the 'Extensions" section for "GD".
coldsol replied on at Permalink Reply
coldsol
Thank you mhawke! I checked and found the "GD" in the extension section.

Here is a copy - maybe it helps.

# concrete5 Version
5.6.0.2

# concrete5 Packages
Google Tagcloud (1.5), Internationalization (1.1.7), Simple Image Gallery (1.1.3), tnSpacer (1.3).

# concrete5 Overrides
js/3ee3278a58b7b31a229a620dd4b375b5, js/d067080aacee62958c45c73bfe491837, js/b12e3b5122c7864404eab588a9d1d743, js/index.php, js/5cfda3394a364fe9ee82acf8ada6f911, js/cgi, js/69012db7887a3de5723e4d1040716954, libraries/platform.php, libraries/joomla, libraries/cms, libraries/phpmailer, libraries/phputf8, libraries/loader.php, libraries/index.html, libraries/simplepie, libraries/import.php, libraries/cms.php

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.2.17

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, ctype, curl, date, dba, dbase, dom, exif, filter, ftp, gd, gettext, gmp, hash, iconv, imap, json, ldap, libxml, mbstring, mcrypt, mhash, mime_magic, mysql, mysqli, ncurses, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, SQLite, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Optimizer, zip, zlib.

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 10M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 10M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 200000
pcre.recursion_limit - 200000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Thank you
mhawke replied on at Permalink Reply
mhawke
Well I see an importer.php override in [root]/libraries/import.php that 'might' cause problems although I think it needs to be in '[root]/libraries/file/importer.php' to truly override the import process.

You might try renaming the '[root]/libraries/importer.php' temporarily and try uploading a new image. The importer.php file creates thumbnails (among other things)
coldsol replied on at Permalink Reply
coldsol
I am not sure if I understand you right:

In public_html/concrete/libraries I neither find an import.php nor an importer.php. In public_html/concrete/libraries/file I find the importer.php > Are you suggesting to rename this import.php? Just like importer_test.php?

In public_html/libraries I find an import.php. Not sure what to do.
Thank you for your help and patience.
mhawke replied on at Permalink Reply
mhawke
yes.

In your 'environment' listing, there is a section called 'overrides'. These are all the files that C5 will use INSTEAD of the core files. The listing shows an importer.php in libraries/importer.php so I assumed that's where it was but perhaps the 'environment' function is off.

Yes, rename that file and see what happens. Remember to turn OFF the 'overrides' cache and then rename that file so that C5 will revert back to the core importer.php.
mhawke replied on at Permalink Reply
mhawke
Sorry, ignore that post. I just noticed the path was [root]/concrete/libraries. Don't touch that.
mhawke replied on at Permalink Reply
mhawke
Temporarily rename the file in [root]/libraries/importer.php to importer_temp.php. I'm not optimistic but try it anyways.
coldsol replied on at Permalink Reply
coldsol
In public_html/libraries I only find an import.php file not an importer.php, but I renamed it.

Cleard chache, rescanned a picture and uploaded new pictures. Same old problem.
mhawke replied on at Permalink Reply
mhawke
Sorry for the wild goose chase. You'd better rename it back to import.php because I don't know what it does. I don't want some other function of your site to die.

I'll keep thinkin'
coldsol replied on at Permalink Reply 1 Attachment
coldsol
Hi mhawke,

sorry to bother you, but I am getting desperate here. I am already starting to work around the problem by uploading pics to my blog and referring to the image URL at my website.

Still, no thumbnails to see and if I am looking up the image URL of the uploaded pictures I get an error: "Page Not Found
No page could be found at this address."

Attached a screenshot from the file manager stating the URL of the picture uploaded.

You might say it is a huge file, bu I also have a small icon in the file manger with only 64 KB and it won't show up either.

If I put a block with the pictures on the site they will not be shown (blank space) but mouse arrow changes when hover over it.

Any ideas?
maar replied on at Permalink Reply
maar
Just a thought. Could you show me one of your jpg files...

Michael
coldsol replied on at Permalink Reply 3 Attachments
coldsol
Hi maar,

attached you will find three.
Again, I do not see one, even the sample pictures of C5.
mhawke replied on at Permalink Reply
mhawke
I'm still concerned about that import.php file in your [root]/libraries folder. Have you tried removing it temporarily?

None of the images under [root]/files are showing up, even your favicon. Can you go into your host's Control Panel -> File Manager and tell us what permissions are on the [root]/files folder?
coldsol replied on at Permalink Reply
coldsol
I removed the import.php at public_html/libraries refreshed page, cleared chache at C5 and still no thumbnails at file manager.

pictures are stored at public_html/files + a lot of subfolder. All the folders are on 755 and the pictures themselves at 644. I changed a picture to 777 and still no success.
mhawke replied on at Permalink Reply
mhawke
What are the permissions on the [root]/files folder itself?
maar replied on at Permalink Reply
maar
I will second the question about /files permissions
coldsol replied on at Permalink Reply
coldsol
755
maar replied on at Permalink Reply
maar
Are your Concrete5 installed on top of an old joomla installation?
mhawke replied on at Permalink Reply
mhawke
@maar... If you're looking at the link near the top of this post, that was a link to the OP's site. Coldsol is not the OP.
mhawke replied on at Permalink Reply
mhawke
Does changing it to 777 help any? (Clear cache in C5 and browser(s) )
coldsol1 replied on at Permalink Reply
It's still me coldsol, but somehow C5 denies access, telling me "user is inactive"

@maar: I had once joomla, that's correct. I removed/uninstalled it as provide from my host justhost.com. But still there are some folders/leftovers in the directory. Honestly I don't know which are from joomla, thus disruptive/unimportant and which one are important. That's why I did not deleted any folders in my root. How do I know which of them I can delete?

@mhawke: nothing changed when permissions are on 777
mhawke replied on at Permalink Reply
mhawke
When you deleted Jommla, did you personally delete all the folders through FTP or was it a script provided by JustHost? I'm nervous that there were Joomla files left behind in common directory names like that import.php file. Can you post the import.php file? (You'll have to change the .php to .txt)
coldsol1 replied on at Permalink Reply 1 Attachment
I did not deleted anything manually.
The import.txt is attached and you are right, it is JOOMLA
mhawke replied on at Permalink Reply
mhawke
Yep, that's a left over Joomla file. I'd say re-install and start over. You may never find all the problems with you're current installation.
maar replied on at Permalink Reply
maar
Go to your site by FTP. Delete all folders beside /files /config /concrete and packages. Upload a new copy of concrete5 so all folders will be re-established.
It should not be possible to install concrete5 in an already occupied database. But just in case - are you installing concrete5 in a e empty database.
All the things that I saw up to now is a concrete5 site that handles totally wrong. There is no logic in this. I personally have installed over 500 sites without any glitch. So there has to be something that interfere with your concrete5 installation!
mhawke replied on at Permalink Reply
mhawke
Don't delete your theme folder!!
maar replied on at Permalink Reply
maar
Sorry - don't delete the themes folder....
I would also like to know what files you have in the /config folder
coldsol1 replied on at Permalink Reply
I am a noob here...
Go to my site by FTP would by my cPanel File Manager?
mhawke replied on at Permalink Reply
mhawke
You can use the File Manager but it may be easier to use Filezilla:http://filezilla-project.org/download.php... . What's one more learning curve to climb!!

@maar... don't you think a completely new install is in order? There could be errors in the existing database tables.
coldsol1 replied on at Permalink Reply 5 Attachments
Attached screenshot of my directory. Please let me know what I can/have to delete.
mhawke replied on at Permalink Reply
mhawke
The problem is that there may be Joomla versions of C5 files in the directories you keep.
maar replied on at Permalink Reply
maar
Ok. If you are comfortable with cpanel you can use that.
coldsol1 replied on at Permalink Reply
So what would be a wise strategy here?
As you can imagine I am worried to loose everything or screw it up
maar replied on at Permalink Reply
maar
Your site is really messed up. I have seen this before. It is not a good idea to install on top of an old site.

Start delete folders in your public_html folder, so you will end up with this:

/blocks
/concrete
/config
/controllers
/css
/elements
/files
/helpers
/jobs
/js
/languages
/libraries
/mail
/models
/packages
/page_types
/single_pages
/themes
/tools
/updates
index.php
robots.txt

After that you should enter every one of these folders and delete the content:

/blocks
/controllers
/css
/elements
/helpers
/jobs
/js
/languages
/libraries
/mail
/models
/page_types
/single_pages
/tools
/updates

And then you have to tel us what you see in your /config folder
coldsol1 replied on at Permalink Reply
Just to make sure I understand you right. Deleting the content of these folders? Making them completely empty?
mhawke replied on at Permalink Reply
mhawke
You have a multi-language site so I would NOT delete the contents of your /languages folder.
maar replied on at Permalink Reply
maar
Sorry... But I have to get to bed now... Please tell me if you got the things running! I am on Danish time!
maar replied on at Permalink Reply
maar
What I am trying to do is for you to have a standard concrete5 installation. You could unzip a copy on your local computer to compare. Just think about that /files /concrete /config /packages /themes is your important folders!
maar replied on at Permalink Reply
maar
Thanks mhawke... You can probably run him through now... Good night!
coldsol1 replied on at Permalink Reply
Thank you for your support and have a good rest. I will keep you posted
mhawke replied on at Permalink Reply
mhawke
I'm on it. good night.
mhawke replied on at Permalink Best Answer Reply
mhawke
It turned out to be a redirect entry in the .htaccess file. All requests for the [root]/files folder were being redirected to a blank folder.

This was a case where numerous CMS's (Joomla, WP and LiveSite) were installed on top of each other. Each one added it's own files and it's own entries to the .htaccess file.

Lesson: Always install concrete5 into a virgin directory with a virgin .htaccess file.
coldsol1 replied on at Permalink Reply
I have to add, I uninstalled all these CMS through the host (justhost.com) and was expecting they would remove all related files. Obviously that was not the case.

Thank you guys for your support!
mhawke replied on at Permalink Reply
mhawke
That sounds like a reasonable assumption but the forums are littered with problems caused by the host's install/uninstall scripts gone bad.

Glad we got it sorted out.
maar replied on at Permalink Reply
maar
Very good... I actually expected this and I have seen this before on some hosting companies where they promise that you can install by one click but they never clean up when you want to try something else.

I am running Concrete5 Denmark and we get a lot of these questions..

Good job....

I hope this will make an example to every one to be aware of the issue when trying out different CM systems.
coldsol replied on at Permalink Reply
coldsol
From my point of view it was just the fact I did not know better, but I learned my lesson.

This morning I upgraded and everything is running just fine. T

Maar, Mhawke - thank you for your support.
aziric replied on at Permalink Reply
Hey guys...i have a similar problem....i had loads of pictures on my site, with hyperlinks and all - working.

Then i started messing with the background and the theme....and i don;t know what happened, but now all my pics are gone! they'r not deleted, but simply not visible...if i try to download them on my computer, i can visualize them. if i upload them again...nothing...


it;s kind of urgent..
any ideas?
mhawke replied on at Permalink Reply
mhawke
You might want to start a new topic for this. I doubt it's the same issue even though the symptom is the same. When you start your new thread, be sure to post a URL we could have a look at. Solving problems by guessing can take a very looong time.