Lost Ability to Add Blocks

Permalink 1 user found helpful
Everything was working just fine earlier today. But when I took a break and came back, I lost the ability to add blocks or stacks. All I get now is a spinning wheel (see attached screenshot). I have tried different browsers (safari & firefox) as well as different computers. I'm grateful for any help!

1 Attachment

JRTaylorMusic
 
anchoredbutterfly replied on at Permalink Reply
anchoredbutterfly
JRTaylorMusic replied on at Permalink Reply
JRTaylorMusic
Well I was hopeful (and tried a few times) but I'm still getting the spinning wheel when I try to add a block. Any other thoughts? Thanks!
JRTaylorMusic replied on at Permalink Reply
JRTaylorMusic
I CAN paste from the clipboard. I can also edit that block.
I'm pretty much up a creek otherwise?
cryofix replied on at Permalink Reply
I am in the same boat right now.

If I try and edit existing it works.

If I try and add a block like Content I get the spinning wheel.
cryofix replied on at Permalink Reply
JR,

Did you ever have Content Around Image addon installed?

Just curious.

Here are some errors I am seeing, but the files dont actually exists in the code.

[Fri May 25 22:03:39 2012] [error] [client xxxxx] File does not exist: /xxxxx/xxxxx/xxxxxxx/missing.html, referer: http://xxxxxx.xxx/index.php?cID=128&ctask=check-out&ccm_token=1338008609:0f51d831ba14ab4cf1ef220f68461950
[Fri May 25 22:05:33 2012] [error] [client xxxxxxx] File does not exist: /home/xxxxxxxxxx/concrete/css/bullets.png
[Fri May 25 22:05:33 2012] [error] [client xxxxxxxxxx] File does not exist: /home/xxxxxx/concrete/css/arrows.png
JRTaylorMusic replied on at Permalink Reply
JRTaylorMusic
No. For me, I was adding a couple of photos. First I uploaded successfully to file manager. The I added each photo. I went away from the computer for a few hours, came back and decided to try a sideshow instead of the two individual shots...deleted the Image blocks and then when I went to add the Slideshow block, this started. Tomorrow will be day 3 like this.

Somewhere in the time I was gone the laptop went to sleep and I think I had to log in again. But I'm having this problem on every page, not just that one.
jero replied on at Permalink Reply
jero
Are you getting any JavaScript or not found errors I wonder? If you're not using Firefox with the Firebug addon, I'd recommend you try it. Open Firebug and open the console display. You'll see any errors listed there.

More often than not, a spinning graphic is the result of a failed AJAX call, either because of a JS error, or an error in the webserver response.
JRTaylorMusic replied on at Permalink Reply
JRTaylorMusic
Thanks for the tip! Here's what comes up in the Firefox Web Console when I try to add a Content block:

--
[22:42:50.241] GET http://homestudiodoors.com/add_block_popup.php?cID=139&btID=9&arHandle=Main [HTTP/1.1 404 Not Found 227ms]


Don't know what to make of it... I gratefully await your further help!
jero replied on at Permalink Reply
jero
That URL is broken - for some reason it's missing the tools/required part from the URL. It should be

GET http://homestudiodoors.com/tools/required/add_block_popup.php?cID=139&btID=9&arHandle=Main


add_block_popup.php itself should be located in concrete/tools - make sure it is still there and is readable/has correct file permission.

Does this occur on every block type, or just a particular one?
cryofix replied on at Permalink Reply
Firebug installed, add_block_popup.php is missing

concrete/tools/ has the file, permissions are rw-r-r so we are good there

I dropped add_block_popup.php back to my root directory to see what happened and it found it in the root but I got permission denied error on the screen.

To reproduce:
Click edit this page
Click on add to "header, main, sidebar, etc.."
Select Add Block (you see the full menu of blocks to add)
Select any item in this menu and you will get the spinning wheel

hope this helps.
jero replied on at Permalink Reply
jero
You will get the permission denied error, because executing the php in root, it is running outside of the c5 framework.

The issue is, as I said before, why the "tools/required" path has vanished from the ajax request.

Perhaps if you posted your debug environment this might help.
cryofix replied on at Permalink Reply
I am curious what this links too
REL_DIR_FILES_TOOLS_REQUIRED

and if this is the correct syntax.

Here is some access log items
96.227.4.94 - - [28/May/2012:19:17:54 -0700] "GET /index.php/tools/required/page_controls_menu_js?cID=1&cvID=&btask=&ts=1338257870 HTTP/1.1" 200 24391 "http://tandlracing.com/index.php?cID=1&ctask=check-out&ccm_token=1338257866:919a861c2ef91d2bd41acd781cd0e6c5" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0"
69.163.170.142 - - [28/May/2012:19:18:23 -0700] "GET /updates/concrete5.5.2.1/concrete/images/icons/remove.png HTTP/1.1" 200 1328 "-" "Serf/0.7.2 mod_pagespeed/0.10.21.2-1381"
96.227.4.94 - - [28/May/2012:19:18:23 -0700] "GET /index.php/tools/required/edit_area_popup.php?cID=1&arHandle=Main&atask=add&addOnly=0 HTTP/1.1" 200 19119 "http://tandlracing.com/index.php?cID=1&ctask=check-out&ccm_token=1338257866:919a861c2ef91d2bd41acd781cd0e6c5" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0"
69.163.170.142 - - [28/May/2012:19:18:23 -0700] "GET /updates/concrete5.5.2.1/concrete/images/icons/icon_header_help.png HTTP/1.1" 200 1099 "-" "Serf/0.7.2 mod_pagespeed/0.10.21.2-1381"
96.227.4.94 - - [28/May/2012:19:21:35 -0700] "GET /add_block_popup.php?cID=1&btID=31&arHandle=Main HTTP/1.1" 404 348 "http://tandlracing.com/index.php?cID=1&ctask=check-out&ccm_token=1338257866:919a861c2ef91d2bd41acd781cd0e6c5" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0"


Error log
[Mon May 28 02:31:47 2012] [error] [client 69.163.170.142] File does not exist: /home/tandlracing/tandlracing.com/updates/concrete5.5.2.1/concrete/css/bullets.png
[Mon May 28 02:31:47 2012] [error] [client 69.163.170.142] File does not exist: /home/tandlracing/tandlracing.com/updates/concrete5.5.2.1/concrete/css/arrows.png
JRTaylorMusic replied on at Permalink Reply
JRTaylorMusic
How do I "post debug environment?"

Is this what you mean?

# concrete5 Version
5.5.2

# concrete5 Packages
Featurist Theme (1.3), Slate Theme (1.4).

# concrete5 Overrides
None

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.2.17

# PHP Extensions
bcmath, calendar, cgi-fcgi, ctype, curl, date, dom, exif, filter, ftp, gd, gettext, hash, iconv, imap, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, posix, pspell, Reflection, session, SimpleXML, sockets, SPL, SQLite, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, Zend Optimizer, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 5
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 90M
post_max_size - 8M
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 - 7M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH



I am so anxious to get this resolved. I would reinstall, but fear running into this again, especially since I'm clearly not the only one. How would the path get changed suddenly?
JRTaylorMusic replied on at Permalink Reply
JRTaylorMusic
Yes - this is what I get when I try to add an Image block:
--
[09:00:13.640] GET http://homestudiodoors.com/add_block_popup.php?cID=139&btID=18&arHandle=Main [HTTP/1.1 404 Not Found 1445ms]
jero replied on at Permalink Reply
jero
Yes, that's the debug environment. It looks like you're running 5.5.2, but some of the requests seem to be coming from a 5.5.2.1 upgrade.

I suspect that the upgrade hasn't worked properly.

Make a copy of your config/site.php. Then edit it and remove or comment out the line which refers to the upgrade. This should revert the site to using the 5.5.2 code. See how that works.

I would also clear and then disable the cache.
JRTaylorMusic replied on at Permalink Reply
JRTaylorMusic
My config/site.php only contains this:
<?php
define('DB_SERVER', 'mysql.homestudiodoors.com');
define('DB_USERNAME', 'homestudiodoorsc');
define('DB_PASSWORD', '********');
define('DB_DATABASE', 'homestudiodoors_com');
define('PASSWORD_SALT', '[longstringofnumbers]');
jero replied on at Permalink Reply
jero
Oh, I see now that some of your logs relate to a different site, which explains the confusion.

You mentioned REL_DIR_FILES_TOOLS_REQUIRED - what value does it have? I would expect it to be "index.php/rools.required".

To discover its value, try adding this code to the end of one of your templates
<?php
var_dump(REL_DIR_FILES_TOOLS_REQUIRED);
?>
JRTaylorMusic replied on at Permalink Reply
JRTaylorMusic
I just realized I think you were replying to cryofix originally and then I replied to you...sorry for the confusion! I will try to study that part of the conversation and see what I can make of it...
cryofix replied on at Permalink Reply
site/tmp/var.php

string(28) "REL_DIR_FILES_TOOLS_REQUIRED"
jero replied on at Permalink Reply
jero
You need to do the var_dump from within C5, doing it outside won't tell you anything. That's why I suggested putting it in the template.
cryofix replied on at Permalink Reply
removed update line in in site.php, shut off cache, and cleared.

Still the same for me

just wondering if the syntax is correct for REL_DIR_FILES_TOOLS_REQUIRED
cryofix replied on at Permalink Reply
string(25) "/index.php/tools/required"
JRTaylorMusic replied on at Permalink Reply
JRTaylorMusic
Just reinstalled...same problem! What in the world could be causing this?
Korvin replied on at Permalink Reply
Korvin
Make sure that you clear your site cache (not just disable it), also make sure that you don't have any other server level caching active.
jero replied on at Permalink Reply
jero
I'd be suspicious of your .htaccess file doing some sort of rewriting that perhaps it shouldn't. What does it look like?
cryofix replied on at Permalink Reply
I just checked and didn't find any .htaccess files in the site.

I thought that at first, but nothing on the site.


JRTaylor,

Who is your hosting provider?
cryofix replied on at Permalink Reply
looks like a bug has been opened, by another user

http://www.concrete5.org/developers/bugs/5-5-2-1/cant-add-any-more-...
cryofix replied on at Permalink Reply
If your using Dreamhost, this problem is fixed.

http://www.concrete5.org/community/forums/usage/cant-add-any-more-b...

Click Manage Domain > (domain) Edit > un check "Page Speed Optimization" > Click Change setting button at the bottom.

Wait 5-10 minutes for the change to take affect

I was then able to edit and add pages again.

Thank you Riteshdas
rondellaquila replied on at Permalink Reply
Don't feel alone...I'm experiencing the exactly the same 'NO BLOCKS' issue you are describing.

As part of the debugging process, I created a new C5 site and to my surprise, it works as advertised!

What's with the latest 5.6.1 upgrade that breaks the new block functionality?

With the debug option on, I also get errors when I try to perform a Database Refresh. ( require_once() [function.require]: Failed opening required...)

I don't want to rebuild my site...

Ron
pixeleleven replied on at Permalink Reply
pixeleleven
Hi Guys,

Just Googled this as having 'exactly' same problem with missing 'edit_area_popup.php' file. Cannot add block but can paste from scrapbook.

Anyone on this thread, found a solution, it is driving me nuts!

Many Thanks in anticipation.

Nick
heinrichundgretchen replied on at Permalink Reply
heinrichundgretchen
Hi all,

did anyone find a solution to this? I just experienced the same thing (not hosted on Dreamhost) and have no idea what to do...

Before "downgrading" to 5.6.2 maybe anyone has an update on that issue??