Jump to content

Archived

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

ketri

"Looks like your NextBox PHP resulted in an error :/"

Recommended Posts

ketri

Hi

For once I've got a live version online and not just a local development version: http://iisaofficial.com/
So NextBox gives an error even though there is no PHP in it. If I enable "Allow PHP executionthen it gives error no matter what. Local MAMP server or live server. 

I i
nstalled the Nextbox by uploading it as a plugin, was this the correct way? 

Thanks!

Share this post


Link to post
Share on other sites
ketri

Update: 
I get this error at least locally with a vanilla DMS installation. 
What does the "if your host allows it" mean? Is there a way to make it work locally and with standard shared hosting apache servers?

Share this post


Link to post
Share on other sites
Danny

Hi,

 

Well if you enable Allow PHP to execute and add no PHP, you will get an error. If you add the following as a test:

 

the_title();

 

it should remove the error.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
ketri

Thank you very much Danny. 
My problem was that I tried inserting the PHP inside <?php .... ?>

So I can only use PHP if I click the checkbox? 


 

Share this post


Link to post
Share on other sites
Danny

Yeah, you don't use the PHP tags, there no required as far a I know. 


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
ketri

Ok. An idea: how about having the Nextbox use PHP tags so it could be used for literally anything. 
Stuff like 

<h1><?php the_title(); ?></h1>

 would in many cases be easier than

echo "<h1>" . the_title() . "</h1>" 

type of stuff.

Share this post


Link to post
Share on other sites
Simon
Why? Because you can only use one open and close.
The box is meant for pure php not horrible inline copy pasta
printf( '%1', the_title() );


Sent from my iPad using Tapatalk

Share this post


Link to post
Share on other sites

  • Similar Content

    • MiraAdmin
      By MiraAdmin+
      Looking for some help on a recently developed issue. Editor will not load. 
      Theme:  DMS2
      Error from:  Chrome - Inspector - console view
      Error message: Refused to execute script from 'http://xxxx.xxx/wp-content/themes/dms/dms/editor/js/gettext.js/?ver=4.9.7' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
      Occurs on all sites on same server. 
      WP versions to 4.9.5, 4.9.6, 4.9.7 = same behavior. Worked properly on these same versions until 07/04/2018.
      No new plugins. Isolating plugins offers same behavior. 
      Server vendor reports no changes, patches, etc. 
      Server re-starts no impact.  

      Thank you. 
    • 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
       
    • romanondrasek
      By romanondrasek+
      Hi, I just found that my site is not working - nothing to see what I have activated PL5 tap late (just white screen :-() , I can open just admin site . I tried to activate different template (tventy seventeen) and was working , but not with PL5. 
      could you pls let me know what is the problem ASAP 
       
      the site is : www.myfit.cz
      than you so much
       
    • 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.
       
×