Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

17480 Posts in 4474 Topics by 1973 members

Archive

SilverStripe Forums » Archive » Error saving with internal link in page content

Our old forums are still available as a read-only archive.

Page: 1
Go to End
Author Topic: Error saving with internal link in page content 909 Views
  • Apophenian
    avatar
    Community Member
    40 posts

    Error saving with internal link in page content Link to this post

    Hi there - I am using silverstripe 2.2.2 and am getting the following error when saving a document that has an internal link (ie a link to another page on the same site) in the document content:

    Error in Ajax evaluator on line 973: syntax error in loadChildIntoDatabase$('Form_EditForm').loadActionsFromString('\n \n \n \n '); $('Form_EditForm').loadActionsFromString('\n \n \n \n '); $('Form_EditForm').updateStatus('Published'); $('sitetree').setNodeTitle(43, 'Bicycle') $('Form_EditForm').elements.StageURLSegment.value = 'http://new.thisisnotart.org/bicycle/' $('Form_EditForm').elements.LiveURLSegment.value = 'http://new.thisisnotart.org/bicycle/' $('Form_EditForm').notify('PagePublished', $('Form_EditForm').elements.ID.value); statusMessage('Published \'Bicycle\' successfully', 'good');

    It seems to work fine for an external link.
    Has anyone got any suggestions?

    Cheers,

    Rane

  • Sam
    avatar
    Administrator
    636 posts

    Re: Error saving with internal link in page content Link to this post

    Have you made a command that echos "loadChildIntoDatabase" as a debug statement? That looks like the cause of the problem.

  • Apophenian
    avatar
    Community Member
    40 posts

    Re: Error saving with internal link in page content Link to this post

    Thanks for your response!

    Sorry, I am not quite following - are you asking whether I have a debug statement in my code that echos 'loadChildIntoDatabase' and which may be causing the problem, or suggesting that I put a debug statement in my code?

    If it is the first, I haven't already...

    909 Views
Page: 1
Go to Top

Currently Online: AlfonsoGrondo

Welcome to our latest member: AlfonsoGrondo

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.