edit mode

Permalink
When I put it in edit mode, I can not get any menus to come up. I've checked and jquery-ui is being loaded twice, in the header and the footer. Does anyone have any ideas ??

added note ..Just found .. have an unpublished page which does not show up in the full sitemap and when you go to the page you get " Page Forbidden , you do not have access "
and the path is http://localhost/site10/index.php?cID=179.....

are these two part of the same problem ??

Thanks
Bob

rdealmeida
View Replies:
AndyJ replied on at Permalink Reply
Hi,
it sounds as though your theme is including jqueryui as well.

I'm guessing in your theme there is a call to jqueryui?

Jqueryui is included automatically when you put the page into edit mode so you have a conflict.

Does your theme require a different version of jqueryui?

If you only need the jqueryui from Concrete5 then you should change your page_theme.php to Require jqueryui and comment out the jqueryui call from the theme then it will always use the Concrete5 jqueryui.

Does that work or does it mess up your website outside of edit mode?

Can you share the URL?
rdealmeida replied on at Permalink Reply 1 Attachment
rdealmeida
Hi AndyJ

Thanks for the quick reply... I'm not loading jquery-ui at all but it is loading twice ( header and footer)..I'm running localhost.. I've attached the source.. Hopefully you might see something I can't.. I'm wondering if the unpublished draft could be part of the problem.. it's not showing up in the sitemap and when I go to it I get " Page Forbidden You are not authorized " with no toolbar and no way to get rid of it..

Thanks

Bob
AndyJ replied on at Permalink Reply
I can see it is loading in the header and the footer as you said.
If it isn't being added in the theme then I guess it is being added in by some add-on?

I'm not really sure how you'd track it down without just searching the codebase for the string jquery-ui and tracking it from there.
AndyJ replied on at Permalink Reply
Can I just check I understood correctly. You cannot put any page on the site into edit mode without it breaking?
rdealmeida replied on at Permalink Reply
rdealmeida
Hi AndyJ

Sorry having senior moment.. What I meant to say was.. The page will go to edit mode but if you click on any block in edit mode ,you will not get a menu,,(ie: edit block, add layout..)

added note.. the only blocks on the page are, content , image and html for the social icons..

Bob
AndyJ replied on at Permalink Reply
Hi Bob,
you aren't the only one. I sold you a bum-steer by the looks of it.
Double-check your page but I think the jqueryui is actually only being loaded once. In the header it is loading jquery-ui.css and in the footer it is loading jquery-ui.js. This is normal one is the styles and one is the javascript.

Can you open the page in chrome and look in the console for any errors?
rdealmeida replied on at Permalink Reply
rdealmeida
Hi AndyJ

Your right.. I think I need new glasses.. jquery-ui.css is loaded in the header.. Console is showing Uncaught TypeError: Cannot read property 'replace' of undefined... underscore.js

any ideas ??

Bob
AndyJ replied on at Permalink Reply
I've seen this happen with javascript errors and also with html errors. I'd go through and make sure that all your divs are closed properly and correctly nested. Apart from that it is very difficult to say without seeing the site.

I take it if you switch back to elemental theme everything works ok?
rdealmeida replied on at Permalink Reply
rdealmeida
Hi AndyJ
I'm not sure if you saw the edit to my last post but I am getting an error in the console.. Later this evening I will have it on a server .. how do you want me to send you a link ?/

Bob
AndyJ replied on at Permalink Reply
Post it here. I'll take a look in the mornjng but someone else might take a look in the meantime. If you don't want to post the link here you can PM me it. Now I think about ut I'm pretty sure I've seen this errorwhen not all divs have been closed down before the footer.
rdealmeida replied on at Permalink Reply
rdealmeida
Hi AndyJ
With the unpublished page that does not show up in the site map.. When I click on it I get
[ {"message":null,"title":null,"time":"2016-02-17] [03:45:42","redirectURL":"http:\/\/localhost\/site10\/index.php","pages":][{"name":null,"cID":null}]}]..
Any ideas on deleting this page ??

Bob
AndyJ replied on at Permalink Reply
not really - the fact you are seeing JSON output 'normally' signifies some scripting error on the page.

If the page is not available from the sitemap how are you reaching it?
rdealmeida replied on at Permalink Reply
rdealmeida
Hi
If I click on pages on the toolbar, it shows up under page drafts..


Bob
AndyJ replied on at Permalink Reply
hello again,
if you go the sitemap and check the box 'Include System Pages in Sitemap'.

In the further pages you should see 'Drafts'.

Do you see the errant page in there? Are you able to delete it from there?
rdealmeida replied on at Permalink Reply
rdealmeida
Hi AndyJ

nope it does not show in the sitemap under drafts..the only place it shows is under pages

Bob
rdealmeida replied on at Permalink Reply
rdealmeida
Hi AndyJ.

any ideas ?? the system let me "delete page" under page settings, before I gave it a name and location..

Bob