Can't add any more blocks

Permalink 2 users found helpful
A few days ago I wasn't able to add a YouTube block, now it has gotten worse and I can not add ANY blocks to my site, message says 'page not found'.

I have two other sites, and there I also now can't add any blocks, there is just the spinning wheel, nothing else.

I have contacted Dreamhost, they said there is nothing unusual happening, is there a bug with Concrete 5?

I'm using standard Dark Chocolate with Mega Menu add on, nothing else, and the other site is Slate.

Please help, we are totally stuck, and worried!

1 Attachment

Riteshdas
 
Apos replied on at Permalink Reply
Apos
[OLD REPLY HAS BEEN DELETED]

Edit: Actually, this is not the right solution. I will look more into it and see if I can locate the source of your problem.

Edit2: I believe I have found the source of your problem. It apparently comes from the file "/concrete/config/app.php". At least, that's where "REL_DIR_FILES_TOOLS_REQUIRED" is defined.

From line 114 to 122, you should have the following code:
if (URL_REWRITING_ALL == true) {
   define('URL_SITEMAP', BASE_URL . DIR_REL . '/dashboard/sitemap');
   define('REL_DIR_FILES_TOOLS', DIR_REL . '/tools');
   define('REL_DIR_FILES_TOOLS_REQUIRED', DIR_REL . '/tools/required'); // front-end
} else {
   define('URL_SITEMAP', BASE_URL . DIR_REL . '/' . DISPATCHER_FILENAME . '/dashboard/sitemap');
   define('REL_DIR_FILES_TOOLS', DIR_REL . '/' . DISPATCHER_FILENAME . '/tools');
   define('REL_DIR_FILES_TOOLS_REQUIRED', DIR_REL . '/' . DISPATCHER_FILENAME . '/tools/required'); // front-end
}


Is that what you have?

More to the point, if you view your front page's html source, you should see, around the top this line:
"var CCM_TOOLS_PATH = "/index.php/tools/required";"
Can you see it?

If you can't see it, the problem is most-likely caused by a non included header in your theme's source code.

Edit3: I went to check your website on my own. It looks like your problem isn't there after all. There is one more possible possibility. I'll be writing it soon.

Edit4: The only place that the error could possibly be, based on my current knowledge of concrete5, is in "/concrete/elements/block_area_add_new.php".
Line 206:
<a onclick="ccmBlockTypeResetKeys()" dialog-on-destroy="ccmBlockTypeMapKeys()" class="dialog-launch ccm-block-type-inner" dialog-on-close="ccm_blockWindowAfterClose()" dialog-append-buttons="true" dialog-modal="false" dialog-width="<?php echo $bt->getBlockTypeInterfaceWidth()?>" dialog-height="<?php echo $bt->getBlockTypeInterfaceHeight()+20?>" style="background-image: url(<?php echo $btIcon?>)" dialog-title="<?php echo t('Add')?> <?php echo $bt->getBlockTypeName()?>" href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/add_block_popup.php?cID=<?php echo $c->getCollectionID()?>&btID=<?php echo $bt->getBlockTypeID()?>&arHandle=<?php echo urlencode($a->getAreaHandle())?>"><?php echo $bt->getBlockTypeName()?></a>


The part that makes the link, which is wrong in your case, is:
href="<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/add_block_popup.php?cID=<?php echo $c->getCollectionID()?>&btID=<?php echo $bt->getBlockTypeID()?>&arHandle=<?php echo urlencode($a->getAreaHandle())?>">


Again, this sends me back to your core having an error in "REL_DIR_FILES_TOOLS_REQUIRED" which is not the case...
cryofix replied on at Permalink Reply
I am having this same problem, and I have dreamhost as my provider.
Riteshdas replied on at Permalink Reply
Riteshdas
Thank you all for responding. Dreamhost called me back last night and fixed the problem. There is a setting in 'manage domains' that needs to be disabled. I don't see where it is now, after they disabled, but it's probably best to talk to them.
So far it seems OK, lets see.
Apos replied on at Permalink Reply
Apos
Was this a setting that was disabled from the Dreamhost administration panel, or directly from concrete5?
Riteshdas replied on at Permalink Reply
Riteshdas
Dreamhost admin panel under: manage domains, disable mod page speed. They did it for me and now I don't see the option anymore, but that's what they told me.
cryofix replied on at Permalink Reply
Riteshdas,

This worked for me on DreamHost, THANK YOU.



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.
Mnkras replied on at Permalink Reply
Mnkras
I figured out the issue, mod_pagespeed by google.

basically it tries to rerwrite requests so that they are more efficient, but it has trouble with relative urls and ajax requests,

basically it would rewrite /tools/required/versions.php as just versions.php breaking things

Mike
Mnkras replied on at Permalink Best Answer Reply
Mnkras