Jump to content

Simple Search not working


icreation
 Share

Recommended Posts

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

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...