Jump to content

Archived

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

mnos

PHP Loading Issue

Recommended Posts

mnos

Hi

 

I have a 'common' PHP Loading Issue.

It happens, because therewas a mistake in the PHP i added to the PL-Nextbox.

 

The problem is... the PL-Nextbox and the PHP is in the header of the page... to every page I go (Except wp-admin/dashboard) I get this error.

 

I have tried to deactivate/uninstall the plugin, but cant deleted the box. So each time I activate/reinstall the plugin, it comes back.

 

Any way, advice in how to solve it?

 

All plugins are up to date.

Share this post


Link to post
Share on other sites
Danny

Hi,

 

You will need to install if you haven't already the DMS Pro Tools plugin and then enable the Section Control option at the bottom. Then go to WordPress Admin Dashboard > Tools and you will be able to edit what you have entered into your sections.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
mnos

Thanks, that works...

 

maybe you could assist also, pretty sure you know the answer.

What I want to achieve is 'writing' the avatar logo or the logged in user, plus adding custum text and user name...

 

The thing I tried to do is adding the following script... but wont work... any suggestion. I am aware its basic PHP though, but got stuck already.

if (is_user_logged_in()) {
          $user = wp_get_current_user();
echo get_avatar( $id_or_email, $size, $default, $alt );
          echo 'Welcome <strong>'.$user->display_name.'</strong>!';
                                   }

Share this post


Link to post
Share on other sites
Danny

I just tried your code and it appears to be working for me without any issue - https://cloudup.com/cigoGdrCbR3

Therefore, you may not check the execute PHP option or had something else causing a conflict?


Please search our forums, before posting!

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.
       
    • Steve Webb
      By Steve Webb+
      I am having an issue with DMS editor not loading.  Just keeps spinning and spinning.
      Have tried several things - Logged in and out, cleared cache, deactivated all plugins, but the issue persists.
      I even had our host restore from a backup a few weeks ago, when I know it WAS working, as I edited a text box on the homepage.  The restore from backup didn't help either.
      Also, the front end of the site shows that the site is framed, or boxed now (whatever you call it), instead of full width as it was previously (last week).
      Dev console shows that there are php errors in Google maps - file is attached.
      Can someone please help?  Not sure what else I can do here...
      Thanks in advance.
      -Matt

    • tuciudadenred
      By tuciudadenred+
      Hi everyone, what happens is that the web page metrosalarmas.com has a google tags which I have not attacked where I can look to remove those tags and be able to locate the correct ones.
×