function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SkyBlue2007SkyBlue2007 

PreSaveValidationException

I have a Apex page whose getter looks like this;
 
Code;
<apex:page standardController="Blog__c" showHeader="false">

<head>

<title>{!Blog__c.Name}</title>
</head>
<body>
<div id="header">
<h1><a class="title" href="{!URLFOR($Action.Blog__c.Edit, Blog__c.Id)}">{!Blog__c.Name}</a></h1>
<h2>{!Blog__c.Description__c}</h2>
</div>
<div id="body">
<div id="main-wrap">
<div id="main" style="margin-top:5px">
<div id="m2">
<div id="m3">
<apex:repeat value="{!Blog__c.Entries__r}" var="entry">
<h2><a href="/apex/BlogEdit?id={!entry.Id}" class="title">{!entry.Name}</a></h2>
<p>{!entry.Body__c}</p>
<p class="sub">Category {!entry.Category__c} : Posted by {!entry.CreatedBy.Name} on {!entry.EntryDate__c}</p>
</apex:repeat>
</div>
</div>
</div>
</div>
</div>
</body>
</apex:page>

This code doesn't work.  Trying to save a page that references the ApexTestpage results in this error:

Error

Error: sun.io.MalformedInputException

ErrorError: common.udd.object.PreSaveValidationException