Page edit is munged

Permalink
I have a page in my 5.4.1 C5 site that is hosed when I enter edit mode. Instead of the popup field, my page goes to another page, without any formatting and fields missing, etc. It's like something has become corrupt.

This is the ONLY page in the site that does this. Any suggestions on where to troubleshoot?

invision
 
bryanlewis replied on at Permalink Reply
bryanlewis
Do you have a link to the page? Are you using Tony's popup package?
http://www.concrete5.org/marketplace/addons/popup/...
invision replied on at Permalink Reply
invision
No, I'm talking about the standard field that pops up when you edit a block on a page. When I try to either add a new block, or edit an existing block on this particular page, the browser goes to
index.php/tools/required/edit_block_popup.php?cID=66&bID=95&arHandle=Main&isGlobal=0&btask=edit

but ONLY for this particular page, leading me to believe something is corrupt in the database.

I just tried adding a new page, re-creating the original page. Everything is fine until I add an "Extended Form"(add-on) block. Looks like that's the culprit. Prior to adding that block, I could edit the page with no problems.

I'll try re-installing that add-on and see what happens.
invision replied on at Permalink Reply
invision
Re-installing didn't do the trick. Just re-installed, getting same result.

I'm going to dig into the database to see if there are any entries in there with strange settings.
invision replied on at Permalink Reply
invision
If I delete the extended form from the page, the page is editable once again.
Shotster replied on at Permalink Reply
Shotster
Sounds like an issue with that particular add-on, in which case you should contact the developer through the support link on that add-on's marketplace page.

-Steve
invision replied on at Permalink Reply
invision
Yep. I've gone back to the built-in form for now. Thanks.
cynergic replied on at Permalink Reply
Yes I had the same issue, replaced the extended form with simple & all was good again. Hopefully the dev can fix soon.
edenxavier replied on at Permalink Reply
edenxavier
I have the Extended Form plugin too. The symptoms here resemble my problems in the past. Try copying root/updates/concrete5.4.1/concrete/js to root/concrete/js. This fixed it for me.
invision replied on at Permalink Reply
invision
Is that going to break on the next upgrade?
Saltwater replied on at Permalink Reply
Saltwater
I'm having similar issues. Definitely related to the Extended Form add-on.

I tried your advice edenxavier, only I'm hosting with C5 so I can;t put files in the concrete folder, but I put them at /root/js/ figuring it would do the same, but nothing was fixed.

Just to be sure, you're saying you copied the 5.4.1 files to the root? Or the other way around?

Grif
edenxavier replied on at Permalink Reply
edenxavier
@ invision: I'm not sure. Hopefully someone more experienced with the addon can chime in.
@ Grificonius: I did it exactly as I described. If you're interested, visit the addon's support area (and make sure you're logged in) and visit:

http://www.concrete5.org/marketplace/addons/extended-form/support/s...

I think the explanation there is much more better than mine.
Saltwater replied on at Permalink Best Answer Reply
Saltwater
I fixed this by moving the core files to the root /js/ folder (not touching the core /concrete/js folder) AND replaced some absolute references in the Extended Form /blocks/extended_form/controller.php

Around line 57 I made a couple replacements which I've commented:

public function on_page_view() {
      $html = Loader::helper('html');
      $this->addHeaderItem($html->javascript(DIR_REL.'/js/tiny_mce/tiny_mce.js'));// REPLACES $this->addHeaderItem($html->javascript(DIR_REL.'/concrete/js/tiny_mce/tiny_mce.js')); 
      $this->addHeaderItem($html->javascript(DIR_REL.'/packages/extended_form/blocks/extended_form/attributes/scripts/jquery.tooltip.js'));
      $this->addHeaderItem($html->javascript(DIR_REL.'/packages/extended_form/blocks/extended_form/attributes/scripts/jquery.rating.js'));
      $this->addHeaderItem($html->javascript(DIR_REL.'/packages/extended_form/blocks/extended_form/attributes/scripts/form.js'));
      $this->addHeaderItem($html->javascript(DIR_REL.'/js/jquery.ui.js'));// REPLACES $this->addHeaderItem($html->javascript(DIR_REL.'/concrete/js/jquery.ui.js'));
      $this->addHeaderItem($html->css(DIR_REL.'/packages/extended_form/blocks/extended_form/attributes/styles/jquery.tooltip.css'));
      $this->addHeaderItem($html->css(DIR_REL.'/packages/extended_form/blocks/extended_form/attributes/styles/jquery.rating.css'));
      $this->addHeaderItem($html->css(DIR_REL.'/packages/extended_form/blocks/extended_form/attributes/styles/form.css'));
      $this->addHeaderItem($html->css(DIR_REL.'/concrete/css/jquery.ui.css'));
      $this->addHeaderItem($html->css(DIR_REL.'/concrete/css/ccm.calendar.css'));
   }


Hope this helps others who cannot edit their C5 core files due to hosting constraints.

Grif
edenxavier replied on at Permalink Reply
edenxavier
Excellent double-whammy solution. :) I'd mark it as best answer if I could.
Mnkras replied on at Permalink Reply
Mnkras
marked :)