Jump to content

Archived

This topic is now archived and is closed to further replies.

dgiggins

'Warning: Creating default object from empty value' ERRORS

Recommended Posts

dgiggins    0
dgiggins

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
Simon    247
Simon

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.

  • Like 1

Share this post


Link to post
Share on other sites
Simon    247
Simon

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

Share this post


Link to post
Share on other sites
dgiggins    0
dgiggins

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
Simon    247
Simon

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
dgiggins    0
dgiggins

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
Simon    247
Simon

Yes, should do it.

Share this post


Link to post
Share on other sites
dgiggins    0
dgiggins

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
Simon    247
Simon

what was the one error?

  • Like 1

Share this post


Link to post
Share on other sites
dgiggins    0
dgiggins

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
Danny    1,327
Danny

Thanks for informing us the issue has been resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×