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    7
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    7
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    1,327
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    7
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    1,327
Danny

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

  • Like 2

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
ketri    7
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    247
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

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • bnapoli
      By bnapoli+
      On my site www.modishmel.com I'm seeing the "blog post title" within the "pins" plugin section breaking words into multiple lines. See screenshot attached.
      Only seeing it in Firefox. Can you help?

    • BentleyD
      By BentleyD+
      Hi Everyone,
       
      I am running into an issue with the DMS Professional Tools Plugin. When active I get this error:
       
      Notice: Use of undefined constant CORE_VERSION - assumed 'CORE_VERSION' in /home/ktyner44/public_html/wp-content/plugins/dms-plugin-pro/libs/class.hacks.php on line 53
       
      Please help if you can. Thank you in advance.
       
      Bentley
    • Jeremiah
      By Jeremiah+
      Error: editing.js?ver=930684:5 Uncaught TypeError: Cannot read property 'getData' of undefined
      I have all of the plugins disabled and I still receive the error.
      Page Editor will not load on page.
       
    • jamieg270
      By jamieg270+
      My client has just flagged up a problem with the Pinterest share button. When they click it on any of theor blog entries Pinterest comes back with the following error:
      Parameter 'image_url' (value http:) is not a valid URL format.
      I've checked this myself and it does indeed happen. The post has a featured image, these are using standard Pagelines DMS sections and the the site is totally up to date.
      The page is here: http://www.technicasolutions.co.uk/5-questions-to-ask-your-prospective-new-it-support-company/
      Any help on this is greatly appreciated.

×