Greg Lercher Posted August 19, 2015 Share Posted August 19, 2015 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 645Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 648Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 657Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708Fatal 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 More sharing options...
adrian Posted August 19, 2015 Share Posted August 19, 2015 What version of PW are you running? I don't see a numChildren() of line 754 on either 2.6.1 stable or the latest dev. Link to comment Share on other sites More sharing options...
Greg Lercher Posted August 19, 2015 Author Share Posted August 19, 2015 (edited) The admin office shows ProcessWire 2.5.3 Thank you so much for your reply!! Edited August 19, 2015 by Greg Lercher Link to comment Share on other sites More sharing options...
pwired Posted August 19, 2015 Share Posted August 19, 2015 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 More sharing options...
Greg Lercher Posted August 19, 2015 Author Share Posted August 19, 2015 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 More sharing options...
pwired Posted August 19, 2015 Share Posted August 19, 2015 The image example was only to find the right direction. Instead of an image it can also be a variable somewhere in your code that has no value assigned to it that processwire is looking for, etc. etc. Link to comment Share on other sites More sharing options...
Greg Lercher Posted August 19, 2015 Author Share Posted August 19, 2015 Thank you for responding pwired! Could this variable be in any file or just in the /…/wire/core/Pages.php file? Link to comment Share on other sites More sharing options...
pwired Posted August 19, 2015 Share Posted August 19, 2015 No not in the wire/core/Pages.php because there only a jump or reference is made to the location where the error actually resides. Link to comment Share on other sites More sharing options...
pwired Posted August 19, 2015 Share Posted August 19, 2015 Also check if you are using a module that is not compatible with your current processwire version.Try to update them in Modules Manager Link to comment Share on other sites More sharing options...
pwired Posted August 19, 2015 Share Posted August 19, 2015 Did you migrate a website ? Try to do the manual installation again, step by step. Link to comment Share on other sites More sharing options...
Greg Lercher Posted August 19, 2015 Author Share Posted August 19, 2015 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 More sharing options...
pwired Posted August 19, 2015 Share Posted August 19, 2015 https://processwire.com/talk/topic/8916-error-call-to-a-member-function-numchildren-on-a-non-object/ Link to comment Share on other sites More sharing options...
Greg Lercher Posted August 19, 2015 Author Share Posted August 19, 2015 Thank you for responding pwired! I already tried that, several times. Any other thoughts? Could I give you FTP access? Thank you so much!!! Link to comment Share on other sites More sharing options...
Greg Lercher Posted August 19, 2015 Author Share Posted August 19, 2015 I have also noticed that some fonts are not loading, but the original site shows them correctly. I thought this was all related to that Fatal Error message I was getting where that slider is. Link to comment Share on other sites More sharing options...
pwired Posted August 19, 2015 Share Posted August 19, 2015 I have also noticed that some fonts are not loading, but the original site shows them correctly. Could be during the zip, upload/migrate, unzip, that not all files made it correctly to the new server. Link to comment Share on other sites More sharing options...
Greg Lercher Posted August 19, 2015 Author Share Posted August 19, 2015 Thank you for responding pwired! Any thoughts talented coders? Thank so much!! Link to comment Share on other sites More sharing options...
Greg Lercher Posted August 19, 2015 Author Share Posted August 19, 2015 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 More sharing options...
Martijn Geerts Posted August 19, 2015 Share Posted August 19, 2015 Without seeing the code for the homepage we can't pinpoint where you made the mistake of trying to use something as an object. Link to comment Share on other sites More sharing options...
Greg Lercher Posted August 19, 2015 Author Share Posted August 19, 2015 Thank you for responding Martijn Geerts! Could I give you FTP access to see the home page? 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