• 0

'Warning: Creating default object from empty value' ERRORS

Question

Posted · Report post

Hello,

 

I have just returned from a weeks vacation and I have errors on my website all of the suddent. I haven't had any problems for two years and I have not edited anything recently.

 

http://www.gigginslandscaping.com

 

Can you please help me to get this running normal ASAP as it is my business.

 

Many thanks,

Dean.

Share this post


Link to post
Share on other sites

11 answers to this question

  • 0

Posted · Report post

what was the one error?

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

PlatformPro was updated 10 days ago with a fix for PHP version higher than 5.3. I guess your host switched versions without telling.

 

The fix is simple and painless.

 

This is the only file changed, just replace the contents:

https://github.com/pagelines/platformpro/blob/master/functions.php

 

You could also ask your host why on earth PHP warnings are being printed to the browser on a production business website.

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for the prompt response!

 

I cannot access my admin page to make the changes. http://www.gigginslandscaping.com/admin - as you can see.

 

How do I go about making the changes now?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

You must have an FTP account, or a file editor on your host?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I use Hostgator. I always just went on webaddress/admin to make all my edits.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I think hostgator uses CPanel, that has a file editor, you will almost certainly have an FTP account as well.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I have gone on File Manager throug the Control Panel and have searched for 'functions.php'. I have found what I believe to be the correct file. I have right clicked this and pressed EDIT.

 

A new page has opened similar to the link you sent me...should I just copy and paste the text from the link you sent into this box and save? That should sort everything?

 

Much, much appreciated,

Dean.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yes, should do it.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I pasted it over the existing text and it didn't work. I just had one error and the website disappeared, so I have put it back to how it was.

 

I edited this file - public_html/wp-content/themes/platformpro/functions.php

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

GOT IT! I pasted it inbetween the top and bottom sections and now it works rather than editing the whole lot.

 

MUCH MUCH appreciated! Excellent service!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for informing us the issue has been resolved.

Share this post


Link to post
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