unable to add assets
I was able to add assets to developing site just fine. Uploaded the site to staging. Now I can't add assets to either the development site or the staging site. Trying to figure out what I did to cause this. Resources folder at staging is coded "755" -- what I need to be editable. Resources folder locally is "Read & Write" -- also what I need.
Diagnostics code from the staging site is below:
HEALTH CHECK
Perch is out of date. You are running Perch 2.8.4 and the latest is 2.8.5. Update instructions
PHP 5.3.13 is very out of date. More info
MySQL 5.5.32-log is up to date
Image processing available
Memory limit is low. Memory use is limited to 32M, which could cause problems manipulating large images.
SUMMARY INFORMATION
Perch: 2.8.4, PHP: 5.3.13, MySQL: 5.0.51a, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /hermes/waloraweb055/b1771/moo.sevaakcom/organic/perch
PERCH_CORE: /hermes/waloraweb055/b1771/moo.sevaakcom/organic/perch/core
PERCH_RESFILEPATH: /hermes/waloraweb055/b1771/moo.sevaakcom/organic/perch/resources
Image manipulation: GD
PHP limits: Max upload 20M, Max POST 20M, Memory: 32M, Total max file upload: 20M
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
DOCUMENT_ROOT: /home/users/web/b1771/moo.sevaakcom/organic
REQUEST_URI: /perch/core/settings/diagnostics/
HTTP_HOST: www.organic.sevaak.com
I'm running php 5.6.1 locally in development. Remote staging is 5.3.1 but I can ask the host to update if necessary.
I've never run into this problem before so I'm stumped.
Thanks for your help!
Do you get any errors, or anything logged in your server error log?
What changed on the staging site between it working and not working?
My error log on the remote server is empty.
"What changed on the staging site between it working and not working?" -- That's the $64 dollar question which I am trying to figure out. Have cleared the decks and am once more going through everything with a fine tooth comb to see if I can figure that out.
Just thought you might have an idea. Usually when I screw up it's something very simple to fix.
A bit more information:
I can "successfully" drag files into the asset window locally. I say "successfully" because while they don't show in the asset window after being dragged there, they DO appear in the Perch/Resources folder -- in Perch's two versions - original size and thumb size.
I cannot do this same thing on the staging site on the remote server.
Ok, let me know what you find out.
I still haven't found the problem but when when I turned on the debug I got this message (which I don't understand):
Debug Message SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0 Queries: 1 Memory: 1.4677
Is that helpful?
And more fully from the Settings / Diagnostics:
Is that when uploading a new image through Assets or somewhere else?
I'm not exactly sure what your "is that" is referring to so I'll try to cover all bases:
The debug message occurs when I first log into the Perch CMS Admin locally. The extended debug comes from the Settings / Diagnostics window.
My ability to load images (getting them to the Resources folder but not appearing on the page) occurs when loading assets from a template form on the page in the Admin window. Here is the code for the template:
It is the same code that has worked on other Perch sites for me.
When I attempt to load assets in this way they appear momentarily in the assets window but then I receive the warning "No matching assets found" and they disappear. They DO appear in the Resources folder though so it seems to be "half" working.
Just now I tried adding images from the Asset window. That worked and from the page I was able to pull them into my admin template form. However, because they were pulled in this way they do not have a Bucket associated with them and that would make adding an asset for the client rather cumbersome. I was only able to access them by pulling up all jpg images -- not via a bucket filter.
I hope this last exercise is helpful in figuring out the difference.
The only thing I can think of that I did between the files working well with assets and the files not working was that I added Open Graph meta in the head of the files -- manually -- not through Perch's OG process.
Thanks for your help Drew.
I'm talking about the last post - the debug information. Where is it from?
It's from the Perch Admin window Settings / Diagnostics -- on the local developing site.
Can you post the debug after the upload?
Sure. Here is the short form:
and here is the extended from Settings / Diagnostics:
So if you go to Assets, click on an image, and then upload a replacement file, what does it output at the bottom of that same edit page immediately at that point?
This before submitting:
And this immediately after submitting:
Ah ha:
Can you visit:
I did that and it made the images appear on the developing site page. Thank you for this step!
I next went into the admin and tried to upload an asset from the page and this was still unsuccessful. What is the next step? Did I jump the gun?
And -- at some point (after this is resolved) -- could you share your thoughts on how this might have happened and how to avoid it in the future?
Thanks Drew!
Here's the debug message after I tried a couple of times to upload an image from the admin page (not assets) and then deleted the item.
How is it failing at this point? Everything looks good in the debug.
I am still not able to upload images from the page in the CMS Admin.
What do you see when you try? What does it look like from a UI point of view?
The image appears VERY BRIEFLY in the drag in window (I have tried dragging the file in and selecting the file -- no difference) and then disappears.
The message "No matching assets found" appears below the drag in window.
I'm sorry this is taking so long Drew. Many, many thanks for your perseverance.