Jump to content

Call to a member function numChildren() on a non-object


Greg Lercher
 Share

Recommended Posts

HI,

After hours and hours and days of searching forums and Google I still have the same problem. 

 

I am getting the below error. 

 

Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 645
Notice: Trying to get property of non-object in //wire/core/Pages.php on line 648
Notice: Trying to get property of non-object in //wire/core/Pages.php on line 657
Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708
Notice: Trying to get property of non-object in //wire/core/Pages.php on line 708
Fatal error: Call to a member function numChildren() on a non-object in //wire/core/Pages.php on line 754

 

I have full access to my admin area. The sites works it just shows this error message on the home page. 

 

I do not see that the above error messages are effecting anything, they just show.

 

http://gocapitolequipmenttest.com/

 

Can anyone, please help me?

Thanks in advance so much for any help!!!!

Link to comment
Share on other sites

Call to a member function numChildren() on a non-object in //wire/core/Pages.php

Each time when I have this error, processwire is looking for something and can not find it.

Example:

$image = $temp->images->get("name=logo.jpg");

Processwire is looking for logo.jpg but it is not there in the image field of the page

or the image is there but under a different name, so Processwire can not find it

and throws this error.

I hope this example will set you in the right direction for your case.

Link to comment
Share on other sites

Thank you for responding pwired!

Okay, so this might not even be in the /…/wire/core/Pages.php file?

On the home page, I do see an error message that shows when  one of the"Go" buttons is clicked on. It does not load another page, just content.

The error says:

Fatal error: Call to a member function getArray() on a non-object in /home/capitolequipme/public_html/index.php on line 242
Error: Call to a member function getArray() on a non-object (line 242 of /home/capitolequipme/public_html/index.php) 
Link to comment
Share on other sites

Thank you for responding pwired!

Yes, the website was moved from one server to our server. I have done the manual installation several times, which has solved all the other issues, but this last one. 

I think the problem is this one slider load, but I can not seem to find it.

Please look at this site: http://gocapitolequipment.com/ and below the main nav, click on "GO" under any of the headings. You will see a white box load with arrows and pics.

Now, go to our dev site: http://gocapitolequipmenttest.com/ and do the same thing. You will see the Fatal Error message where the white box should load. I think that not loading is what is causing the issue.

It is just on the root home page, all other pages load correctly.

Just not sure how to solve it.

Thank so much!!

Link to comment
Share on other sites

Okay, I got the white slider box to load, under the "Go" buttons on the home page. 

The fonts started to work, but then I did a hard refresh and they do not look like they are loading again. 

Still have these errors:

Notice: Trying to get property of non-object in /home/capitolequipme/public_html/wire/core/Pages.php on line 645
Notice: Trying to get property of non-object in /home/capitolequipme/public_html/wire/core/Pages.php on line 648
Notice: Trying to get property of non-object in /home/capitolequipme/public_html/wire/core/Pages.php on line 657
Notice: Trying to get property of non-object in /home/capitolequipme/public_html/wire/core/Pages.php on line 708
Notice: Trying to get property of non-object in /home/capitolequipme/public_html/wire/core/Pages.php on line 708
Fatal error: Call to a member function numChildren() on a non-object in /home/capitolequipme/public_html/wire/core/Pages.php on line 754
 
This error message is just on the custom home page. Still have full access to admin panel and all other areas look good to. 
 
Anybody have any thoughts?
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...