icreation Posted March 30, 2017 Posted March 30, 2017 I have a simple site search using the functions from the default beginner profile in my development site - http://normand.indevelopment.website/ However with debug on I get the following error when trying to SEARCH and then output to the renderNav function. Any ideas? Catchable fatal error: Argument 1 passed to renderNav() must be an instance of PageArray, instance of ProcessWire\PageArray given, called in /home/normandandthomso/public_html/site/templates/search.php on line 52 and defined in /home/normandandthomso/public_html/site/templates/inc/functions.php on line 28
Macrura Posted March 30, 2017 Posted March 30, 2017 sounds like a namespace issue - are all of the files related to this all namespaced? 1
icreation Posted March 30, 2017 Author Posted March 30, 2017 I'm not sure where these statements are to go. On the top of each file, including includes? Does not seem to fix it though.
Macrura Posted March 30, 2017 Posted March 30, 2017 what version of PW are you running, and have you tried removing the namespace from the functions file.. you could also just modify the function.. renderNav(ProcessWire\PageArray $items) or just renderNav($items)
icreation Posted March 31, 2017 Author Posted March 31, 2017 Thanks for that I've managed to bypass the renderNav function and managed to get it work. Thanks
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