li181 Posted August 12, 2021 Share Posted August 12, 2021 Hi There! All of a sudden a parent and child page on our website stopped working. I've tried copying other working pages and then I receive the first error below. What should we do? We really need to get the pages back up and running. THANK YOU SO MUCH Parent page error: Error: Exception: Item prepend to ProcessWire\PageArray is not an allowed type (in /home/odc/public_html/wire/core/WireArray.php line 929)#0 /home/odc/public_html/wire/core/PageArray.php(273): ProcessWire\WireArray->prepend(false)#1 /home/odc/public_html/site/templates/includes/modules/topnav_hp.inc(17): ProcessWire\PageArray->prepend(false)#2 /home/odc/public_html/site/templates/includes/header_hp.inc(8): require('/home/odc/publi...')#3 /home/odc/public_html/site/templates/main.php(10): require('/home/odc/publi...')#4 /home/odc/public_html/wire/core/TemplateFile.php(287): require('/home/odc/publi...')#5 /home/odc/public_html/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render()#6 /home/odc/public_html/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___render', Array)#7 /home/odc/public_html/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array)#8 /home/odc/public_html/wiThis error message was shown because: you are logged in as a Superuser. Error has been logged. We also are experiencing a sub page on our site stop working with: Error: Uncaught Error: Call to a member function children() on bool in /home/odc/public_html/site/templates/includes/modules/popup.inc:28 Stack trace:#0 /home/odc/public_html/site/templates/partials/long-format.inc(1): require()#1 /home/odc/public_html/site/templates/main.php(12): require('/home/odc/publi...')#2 /home/odc/public_html/wire/core/TemplateFile.php(287): require('/home/odc/publi...')#3 /home/odc/public_html/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render()#4 /home/odc/public_html/wire/core/WireHooks.php(723): ProcessWire\Wire->_callMethod('___render', Array)#5 /home/odc/public_html/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array)#6 /home/odc/public_html/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array)#7 /home/odc/public_html/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent))#8 /home/odc/publi (line 28 of /home/odc/public_html/site/templates/includes/modules/popup.inc) This error message was shown because: you are logged in as a Superuser. Error has been logged Link to comment Share on other sites More sharing options...
Gideon So Posted August 13, 2021 Share Posted August 13, 2021 Hi @li181 I think you can check Setup -> Logs -> Errors to have more info and then come back for further assist. Gideon Link to comment Share on other sites More sharing options...
li181 Posted August 13, 2021 Author Share Posted August 13, 2021 Hi There @Gideon So! More or less the same error. See below. I'm not very familiar with ProcessWire, we do all WordPress work but have a client that's experiencing this error. Error: Exception: Item prepend to ProcessWire\PageArray is not an allowed type (in /home/odc/public_html/wire/core/WireArray.php line 929) Thank you! Link to comment Share on other sites More sharing options...
Gideon So Posted August 17, 2021 Share Posted August 17, 2021 Hi @li181 Sorry for my late reply. Seems that your code in the template tries to prepend something that is not a page object to a page array. Would you mind post the code in your template? Gideon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now