Jump to content

Archived

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

ebadia

Error creating default object.

Recommended Posts

ebadia    0
ebadia

Hi to all, I just joined a company and I am the responsible for their websites. we have few and all made with Platform Pro.

Few days ago, we got an error. We did not change anything so I guess some version issue could be in place...

In our website we have word press 3.9 and the hosting site uses php 5.5.

I have been trying and when I change the php to 5.3 in the hosting site the error disappears but with 5.4 and 5.5 we get the error.

 

Does anyone know why this could be happening?

We have deactivated the errors so the page seems to be fine but I would like to know if some incompatibility is in place with platform pro and latest php versions.

 

Error examples:

Warning: Creating default object from empty value in /home3/clinica/public_html/zivingsabadell.com/wp-content/themes/platformpro/core/library/class.layout.php on line 321

 

Warning: Creating default object from empty value in /home3/clinica/public_html/zivingsabadell.com/wp-content/themes/platformpro/core/library/class.layout.php on line 321

 

Warning: Creating default object from empty value in /home3/clinica/public_html/zivingsabadell.com/wp-content/themes/platformpro/core/library/class.options.metapanel.php on line 54

 

Warning: Creating default object from empty value in /home3/clinica/public_html/zivingsabadell.com/wp-content/themes/platformpro/core/library/class.options.metapanel.php on line 54

 

 

Thanks!!!

Share this post


Link to post
Share on other sites
Simon    247
Simon

php 5.4 introduced a new STRICT mode in php and in 5.5 it was turned on by default.

 

Those errors are actually just warnings, and are perfectly fine to be ignored buy adjusting the error log level.

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

I marked solved since Simon_P told me that was normal and should not worry about... But the warnings are still there. 

Share this post


Link to post
Share on other sites
ebadia    0
ebadia

So I should download this new .zip? Where is it posted?

I am sorry for the dummy questions but I am totally new at this.

 

Thanks in advance

Share this post


Link to post
Share on other sites
Simon    247
Simon

Either download the new zip file from your account area on pagelines.com or simply edit that one file.

Share this post


Link to post
Share on other sites
belfusion    0
belfusion

Hi guys. I am having this same error on a website I have just taken over management of.

 

I have tried updating the functions.php with your suggestion but got even worse errors so went back to what I had.

Any updates?

The site is perthtrades.com.au and appears when you click on the blog.

Thanks

Share this post


Link to post
Share on other sites
Simon    247
Simon

Hi guys. I am having this same error on a website I have just taken over management of.
 
I have tried updating the functions.php with your suggestion but got even worse errors so went back to what I had.
Any updates?

The site is perthtrades.com.au and appears when you click on the blog.
Thanks


Your site is hidden behind a coming soon plugin.

If you created more errors by editing the functions.php perhaps you should post the errors you are getting.

As I said at the top of this topic simply lowering the PHP error level will suppress all these warnings.
Ask your host how to suppress PHP warnings and notices, they should be turned off on a production server anyway!

Share this post


Link to post
Share on other sites
belfusion    0
belfusion

Hi Simon.
We enabled the site maintenance while we tried to fix the errors. The errors we are getting are during certain aspects of user selection, for example, if you click on blog and info from the top menu, you get these errors. Using the above solution to suppress PHP made the errors worse.


Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 163

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 166

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 169

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 172

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 175

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 177

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 179

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 201

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 205

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 223

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 224

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 226

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 320

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 320

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 320

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 320

Share this post


Link to post
Share on other sites
belfusion    0
belfusion

I'm also getting this error if I enable Jetpack plugin on the dashboard:
 

Warning: Creating default object from empty value in /home/mickcascades/public_html/perthtrades.com.au/wp-content/themes/platformpro/core/library/class.layout.php on line 163

 

Suppressing this error would mean not being able to access my Jetpack stats.

Share this post


Link to post
Share on other sites
Simon    247
Simon
Turning off php error logging would not create php warnings/notices.

Did you ask your host to turn error logging off? Maybe they have disabled disabling it?

Share this post


Link to post
Share on other sites

  • Similar Content

    • chamois_blanc
      By chamois_blanc+
      It would be nice if all the PL5 shortcodes had a css class option to be able to add classes to the element generated by the shortcode. I'm aware it's usually possible to hack a class in by doing something like size="1x <my_class>". But a clean solution would be nice.
    • jharri74
      By jharri74+
      Hello, is there a way to add a class to an accordion heading? I've read posts that say a unique class is added to each accordion heading of an accordion but I don't see that when i inspect the element in chrome or in firebug. I'm trying to duplicate this (see attached) where each section (eg: main courses) shows the list items and prices of each item within. Here's my current page:
      http://www.jayharry.com/localtemplates/Restaraunt01/full-menu/
       
       
    • rijans
      By rijans
      To change the color of NavBar, I created a custom class GlobalNavigationBarBGColor in styling classes section. and then added the following code in CSS
       
      .GlobalNavigationBarBGColor { background-color: #FF6600; color: #FFF; }   But the color is in a frame! Not in the whole background >> http://postimg.org/image/nbmeicx3f/   Is there anything I missed? Site: techgainer.com (the condition is live right now)
    • ketri
      By ketri
      Hello. 

      I know there's the option for softcoding a class to a section, but what if I want to hardcode it? Or several?
    • nfp1900
      By nfp1900
      I was working on another area of a site and was still finding this issue whereby you can use CSS to add a background to a column class but if you add a border it looks fine until you preview the site - then you'll see one column has jumped underneath. This happens if you have a two or three column layout across the page. 
       
      I couldn't see any guidelines that mention this. Example:
       
      If I add the following custom classes to my my code (they are column classes 6/12 - 6/12 layout)
       
      .diamond, .events-column { background-color: orange;   border-radius: 3px; }   It's fine, I get a nice orange box with a radius. But if I want to add border to my box and include:   .diamond, .events-column { background-color: orange;   border-radius: 3px;   border-style:solid; border-width:2px; }  
      The boxes look ok in the visual editor but when you preview the site the columns reflow and jump to the next available area. 
×