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

    • stijnxo
      By stijnxo+
      Is it possible to get the children of the parent page in Powerloop using Custom Taxonomy and Custom term?
    • Bleuy
      By Bleuy+
      How can I get support on pagelines DMS? The product isn't that old and my skeleton themes aren't working and I can't get support in the same way? 
    • Bleuy
      By Bleuy+
      I have a number of legacy websites that are running on the above version of Pagelines DMS, where the template has stopped working. I am using a skeleton theme to all of them. What do I need to do to rectify this.
       
       
    • 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
       
×