Jump to content

Archived

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

Rob Thomas

PHP Errors in 2.0 and Plugin Incompatibility

Recommended Posts

Rob Thomas

I had no problems updating 2.0 on MultiSite, but everything was slow as molasses and I received the warning messages from the page load times over 5 seconds. 

 

I have debug enabled, have flushed the cache, and have received the following notice:

 

"Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /www/wp-includes/functions.php on line 2913"

 

Let me know how to correct this. 

 

Additionally, this shows up on other sites in the multisite:

"Notice: register_metatab is deprecated since version 1.2 of PageLines DMS! Use section_opts() instead. in /www/wp-content/themes/dms/dms/includes/deprecated.php on line 272"

 

 

***the following is just to share info with others about compatibility with 2.0***

 

Additionally, there were conflicts with Audio Player and Nick's Formats sections, which were deactivated. 

 

 

Additionally, there is an error with Uber Menu

"Notice: Trying to get property of non-object in /www/wp-content/plugins/ubermenu/core/UberMenu.class.php on line 1011 Notice: Trying to get property of non-object in /www/wp-content/plugins/ubermenu/core/UberMenu.class.php on line 1011 Notice: Trying to get property of non-object in /www/wp-content/plugins/ubermenu/core/UberMenu.class.php on line 1011 Notice: Trying to get property of non-object in /www/wp-content/plugins/ubermenu/core/UberMenu.class.php on line 1011"

 

Nick's SlabText returns this error:

"Notice: Undefined property: baBigText::$icon in /www/wp-content/plugins/slabtext/sections/slabtext/section.php on line 188"

 

Revolution Slider does not render properly in 2.0. It's fine in the preview within the Revolution Slider backend, but on the page, the container is not visible. 

 

Despite Audio Player being deactivated, it still returns an error on several of my sites in multisite (but not the main site):

 

"Notice: Undefined property: AudioPlayer::$icon in /www/wp-content/plugins/audio-player/sections/audio-player/section.php on line 595"

Share this post


Link to post
Share on other sites
Danny

HI Rob,

 

On a vanilla installation, I am not receiving the following error anywhere.

 

"Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /www/wp-includes/functions.php on line 2913"
This leads to believe that this is related to a plugin which is using deprecated functions from Wordpress. I recommend you disable all active plugins and see if the error is removed.
 
Notice: register_metatab is deprecated since version 1.2 of PageLines DMS! Use section_opts() instead. in /www/wp-content/themes/dms/dms/includes/deprecated.php on line 272"

This is likely caused by you using an old section, such as the old Feature, Boxes, Banners etc.. sections from PageLines Framework. These section will not function correctly as of DMS 1.2. You will need to either remove these sections, or if they're caused by another section, either see if there is an update or inform us which section is causing the error and we can contact the developer.

 

In regards to sections developed by Nick, you will need to contact him, all sections will likely require an update to make them compatible with DMS 2.0 and Nick no longer uses our forum to provide support. He provides his own support on his forums.

Sections like Audio player again will need updating, we are going to reach out with the devs in the next few days Ive been told.

 

The Rev Slider plugin, how are you adding it to your template? Our developers have said that things like Sliders shouldn't be added via a shortcode to a MediaBox or TextBox section, the correct method would be to either use the shortcode in the Wordpress page or post editor or if you don't want to use it in that way, use a hook. I don't have the plugin to test myself, but when I tried it on DMS 1.x via a hook, I had no issues.

 

Like the Rev Slider, I don't have access to the UberMenu plugin. However, I have made a note of this and will bring it to the developers as he/she has a section on the PageLines store.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Rob Thomas
Thanks, Danny.

I use the Rev Slider as a widget using Widgetizer. That's how I've used it since the beginning of DMS.

It's 3 am here. I'll have a look see tomorrow at all of this (the rest) and report back.

Share this post


Link to post
Share on other sites
Danny

OK thanks.

 

FYI, I've emailed the author of the UberMenu for you.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Rob Thomas

Update: 

 

deactivated all plugins, flushed the cache, and the following remained:

 

"Notice: wpdb::escape is deprecated since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /www/wp-includes/functions.php on line 2913

 

Nick's SlabText was the meta error. I have contacted him about the issue. I believe that was creating the problems for the site loading (as the one site where SlabText is activated will not even load the visual editor at this point). 

 

Revolution Slider is fine in all versions of DMS 1.x. I have used it without incident since the beginning of DMS. It is only in 2.0 that there is an issue. And it seems to simply be an issue of not rendering the container (as it works fine in the preview window in the backend section of the plugin, but there is no container showing up on the sites). I will contact the Revolution Slider people. There was an upgrade to the plugin yesterday or the day before. I had assumed it would be for this issue, but it did not resolve the problem.  

Share this post


Link to post
Share on other sites
Simon

DMS does not use $wpdb->escape() anywhere in the code

Share this post


Link to post
Share on other sites
Rob Thomas

thanks, Simon.

 

I suspect this may be related to WP Multisite and not a plugin. 

Share this post


Link to post
Share on other sites
Danny

Rob Thomas - I received a reply from Chris, the developer of UberMenu and he informed me of the following (which I did actually suspect was the case, but wanted to be sure).

 

If that warning is occurring, it would indicate that that function has not returned valid menu objects inside the array, which I suspect simply means that the user hasn't created a menu yet.  Try having them create a menu in Appearance > Menus and let me know if that doesn't resolve the issue :)

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Rob Thomas
These are sites I've been using for a long time (5-6 months) with functioning menus. Using UberMenu. With menus created in Appearance > Menus

So, saying I haven't created a menu makes no sense to me?

Share this post


Link to post
Share on other sites
Danny

Well thats what Chris wrote me, if you send me the plugins zip, I can test it myself.

 

danny at pagelines dot com


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Rob Thomas
FYI: Nick is no longer supporting any of his his Pagelines products.

**I am just putting this here so you and others are aware**

Nick's BA Shortcodes also interferes with the Navbar in DMS 2.0.

Also, Flywheel says not to worry about [font='Open Sans']"Notice: wpdb::escape is [/font][font='Open Sans']deprecated[/font][font='Open Sans'] since version 3.6! Use wpdb::prepare() or esc_sql() instead. in /www/wp-includes/functions.php on line 2913" (it may be related to Multisite and Sunrise.php[/font]

[font='Open Sans']Re: the RevSlider issue, I was told by the developer: [/font]
[font=Arial]
There's a conflict with one of your theme's styles. To fix, add the following CSS to your theme's "style.css" file:
[/font]

.widget_revslider {overflow: visible !important;}

.tp-bannershadow {z-index: 999 !important;}

Share this post


Link to post
Share on other sites
greenfly

For support with Nick's products please contact him directly http://nickhaskins.co/


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
Rob Thomas

For support with Nick's products please contact him directly http://nickhaskins.co/


Martin Davies, I did that. I'm sharing information with you and everyone else here that he no longer supports ANY of his Pagelines products, even at the site you directed me to. (So, don't refer me, or any of his other customers, to him or his site: they just have to discontinue using any of his Pagelines products).

Share this post


Link to post
Share on other sites
Danny

Thanks for the update Rob.

 

Also, I've used the UberMenu plugin with UberMenu adaptor section and I have not encountered your issue. UberMenu works just fine.

 

http://cl.ly/image/1P2U3n1E1k1Z


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Rob Thomas
I probably need to delete Nick's plugins to end the conflict. If BA shortcodes conflicts with menus in DMS 2.0, then it likely is causing this conflict in UberMenu (and delete, as opposed to simple deactivation, will show that). In any event, I need to go through and replace any instance where I've used bA shortcodes. It would've been easier to find other solutions in the first place.

Share this post


Link to post
Share on other sites
Rob Thomas

ARGHHHHH !! I am not blaming you guys, but I need your help resolving this. 

 

After deleting Nick's BA Shortcodes, I am now getting this: 

 

Notice: pagelines_register_sections is deprecated since version 2.0 of PageLines DMS! Use $editorsections->get_sections() instead. in /www/wp-content/themes/dms/dms/includes/deprecated.php on line 272

 

Additionally, when debug is turned on, the items in the visual editor--the whole section for adding sections, settings, and everything--becomes invisible (so you are seeing parts of it, but also you see through to the webpage and you cannot use it). See posted image below. Is there a way to resolve this? 

 

http://imagesoferoticism.com/wp-content/uploads/2013/11/DMS2_Screen.jpg

Share this post


Link to post
Share on other sites

  • Similar Content

    • jeomiland
      By jeomiland+
      Hi guys
      Hopefully an easy question. I have some custom code included in a Next section in a DMS site that I'm converting to platform5. What is the easiest way to insert my code into a "section" which I can easily add to my page structure with the platform5 page editor? I have the Embed extension but that takes javeascript, and my PHP test failed. Also have the Shortcodes extension, but looks like that only inserts objects into the WP-loop? and again, how to create a Hook that can go here?
      thanks...
    • KathleenAspenns
      By KathleenAspenns+
      I would like to upgrade my site to PHP 7, but there is an error warning in the PL Framework theme. I should think this should be fixed asap, I cannot be the only person trying to be up to date.
      1976 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
       
    • Dan Haddock
      By Dan Haddock
      DMS: Latest Version
      Running a Child Theme
      Wordpress: 4.8.3
      Plugins:
      Akismet Anti-Spam 
      Coming Soon Page & Maintenance Mode by SeedProd
      Contact Form 7
      Cookie Law Info
      DMS Professional Tools    
      Enhanced Media Library
      Flamingo
      Google Analytics for WordPress by MonsterInsights
      Google XML Sitemap    
      Jetpack by WordPress.com
      Legull
      Loginizer   
      MailChimp for WordPress
      PageLines Updater
      Really Simple SSL
      Schema App Structured Data
      Sucuri Security - Auditing, Malware Scanner and Hardening  
      Uber reCaptcha
      Yoast SEO
      Problem Below
      Hi Team,
      I am looking to style the Continue Reading Button with the PHP you provided in an earlier ticket here: 
       
      I put the PHP code into my site, however I do not get my Icon back, I just get back Read More >>
      I have attached a screenshot of the code in place on my site along with the output.
      Interested to know what I may be doing wrong? - I am very new to PHP so a bit apprehensive on this.
      The Images: https://drive.google.com/open?id=0B0i4JJXa2jdQN2xoakZNRUdmaU0
      Let me know if you need any more information from me.
       
    • casseysdesigns
      By casseysdesigns+
      In the past I would use nextbox for this task. However, Platform 5 does not have nextbox. I will do my best to describe what I am trying to do.
      I am creating a template for coaches, each product has its own link but they all share a common coach id. I want to set up the templates with the links for each product with a variable for the coach id so that I can change the coach id for all the links on the site by just changing the value of the variable $coachId. To do this I'll need to do something like the following...
      <a href="salesite.com/productcodes/referringRepId=<?= $coachId ?>" target="_blank">Product Purchase Link</a> Is it possible to do this with Platform 5?
    • janpeeters
      By janpeeters
      I read a lot lately about how much faster PHP 7 is than older versions. Is PL5 compatible with 7?
      Does anyone have experience with running their whole PL5 site on PHP 7? Would love to hear your experiences.
      Thanks, Jan
×