• 0
Sign in to follow this  
Followers 0

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


Question

Posted · Report post

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

6 answers to this question

  • 0

Posted · Report post

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

2 people like this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Posted · Report post

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.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Posted · Report post

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

Posted · Report post

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0