Forum

Thread tagged as: Problem, Error

update error

Hi Drew, I updated to Perch 2.8.5 but the pages is not letting me update and hit save changes the page then comes up blank in backend and frontend (content deleted). Can you check this out?

Perch: 2.8.5, PHP: 5.3.3, MySQL: 5.0.95

SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='675176833a5cf85d2489c1b942141979' LIMIT 1
UPDATE perch2_users SET userHash='9a5a31386f1f08292dcda037a7bfb950' WHERE userID=1
SELECT p.privKey FROM perch2_user_privileges p
SELECT * FROM (SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID
SELECT * FROM perch2_content_regions WHERE regionID=11 LIMIT 1
SELECT * FROM perch2_pages WHERE pageID='8' LIMIT 1
SELECT * FROM perch2_content_items WHERE regionID=11 AND itemRev=101 ORDER BY itemOrder ASC
SELECT * FROM perch2_content_items WHERE regionID=11 AND itemRev=101 ORDER BY itemOrder ASC
Using template: /templates/content/page_normal.html
Form not posted or did not validate
Setting alert: You are editing a draft. Preview (draft)
Queries: 9
Memory: 6.609

Thanks

alex s

alex s 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is there anything in your server error log?

alex s

alex s 0 points

[Wed Apr 22 09:37:08 2015] [error] [client 185.58.16.58] PHP Warning:  DOMDocument::loadHTML() [<a href='domdocument.loadhtml'>domdocument.loadhtml</a>]: Empty string supplied as input in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 1999, referer: https://www.mysite.ie/adminbackend/core/apps/content/edit/?id=11
[Wed Apr 22 09:37:08 2015] [error] [client 185.58.16.58] PHP Catchable fatal error:  Argument 1 passed to DOMNode::removeChild() must be an instance of DOMNode, null given, called in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 2024 and defined in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 2000, referer: https://www.mysite.ie/adminbackend/core/apps/content/edit/?id=11
[Wed Apr 22 09:37:46 2015] [error] [client 185.58.16.58] PHP Warning:  DOMDocument::saveHTML() expects exactly 0 parameters, 1 given in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 2020, referer: https://www.mysite.ie/adminbackend/core/apps/content/edit/?id=11
[Wed Apr 22 09:37:46 2015] [error] [client 185.58.16.58] PHP Warning:  DOMDocument::loadHTML() [<a href='domdocument.loadhtml'>domdocument.loadhtml</a>]: Empty string supplied as input in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 1999, referer: https://www.mysite.ie/adminbackend/core/apps/content/edit/?id=11
[Wed Apr 22 09:37:46 2015] [error] [client 185.58.16.58] PHP Catchable fatal error:  Argument 1 passed to DOMNode::removeChild() must be an instance of DOMNode, null given, called in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 2024 and defined in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 2000, referer: https://www.mysite.ie/adminbackend/core/apps/content/edit/?id=11
[Wed Apr 22 09:47:24 2015] [error] [client 185.58.16.58] PHP Warning:  DOMDocument::saveHTML() expects exactly 0 parameters, 1 given in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 2020, referer: https://www.mysite.ie/adminbackend/core/apps/content/edit/?id=11
[Wed Apr 22 09:47:24 2015] [error] [client 185.58.16.58] PHP Warning:  DOMDocument::loadHTML() [<a href='domdocument.loadhtml'>domdocument.loadhtml</a>]: Empty string supplied as input in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 1999, referer: https://www.mysite.ie/adminbackend/core/apps/content/edit/?id=11
[Wed Apr 22 09:47:24 2015] [error] [client 185.58.16.58] PHP Catchable fatal error:  Argument 1 passed to DOMNode::removeChild() must be an instance of DOMNode, null given, called in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 2024 and defined in /var/www/vhosts/mysite.ie/httpdocs/adminbackend/core/lib/ParsedownExtra.class.php on line 2000, referer: https://www.mysite.ie/adminbackend/core/apps/content/edit/?id=11
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show me your template?

alex s

alex s 0 points

Hi Drew, I downgrade to 2.8.2 and all good again.

Thanks Alex

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. Is the plan to never update ever again? In not, it's worth the effort to troubleshoot what's wrong with your site.

alex s

alex s 0 points

yes:


<div class="row"> <div class="span9"> <div class="lead"> <perch:content id="subtitle" type="textarea" label="Subtitle" markdown="true" editor="ckeditor" required="false" html="true" size="xs" bucket="pages" order="2"/> </div> </div> </div> <hr class="tall"> <div class="row"> <div class="span9"> <perch:if exists="image"> <img class="responsive pull-left" style="margin-right:20px;" src="<perch:content id="image" type="image" width="400" height="300" crop="true" label="Photo" required="false"/>" order="4" > </perch:if> <perch:if exists="youtube"> <h6 class="section-title"><perch:content id="text" type="text" label="YouTube Title" html="false" required="false" title="true" divider-before="YouTube" /></h6> <iframe width="560" height="315" src="https://www.youtube.com/embed/<perch:content id="youtube" type="youtube" label="Youtube URL" output="id"/>?rel=0" frameborder="0" allowfullscreen></iframe> </perch:if> <perch:if exists="vimeo"> <h6 class="section-title"><perch:content id="text2" type="text" label="Vimeo Title" html="false" required="false" title="true" divider-before="Vimeo"/></h6> <perch:content id="vimeo" type="vimeo" output="embed" width="560" label="Vimeo URL" /> </perch:if> <perch:content id="body" type="textarea" label="Body" markdown="true" editor="ckeditor" required="true" html="true" size="m" bucket="pages" order="3" /> </div> </div>
Drew McLellan

Drew McLellan 2638 points
Perch Support

I think you should remove both instances of markdown="true" - you're using CKEditor which outputs HTML not Markdown.

alex s

alex s 0 points

sorry for that, but my client needs a urgent solution. We needed more time for a fix it, right?.

Thanks alex

alex s

alex s 0 points

That’s perfect - thanks so much Drew!, the problem was instances of markdown="true".

Alex