Support » Plugin: Insert PHP » Custom PHP Code Displayed on Page

  • Resolved typoerorr


    I am using Code Snippets and Insert PHP together with the Montezuma theme.

    The pages are able to resolve the PHP to generate dynamic content.

    However, the interesting thing is that the page also shows my PHP codes after the dynamic contents.

    You can view it here

    Have everyone encountered this before?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WillBontrager


    Try temporarily deactivating Code Snippets for a quick test. There may be a conflict that causes one to run the PHP code and the other to publish it.

    A note about Insert PHP: The code used in an [insert_php]-[/insert_php] code block needs to be complete in itself. It can’t be depended on to access variables declared or assigned outside the code block. Insert PHP works by putting the entire code block into an eval statement.

    Looking at your test page code, I’m thinking Ajax may be a viable alternative to obtain the information and publish it.


    Plugin Author WillBontrager


    Insert PHP has had a bug fix. The new version, 1.1, is available as of today.

    Although I couldn’t duplicate the reported issue, I’m thinking the bug fix will have resolved it.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom PHP Code Displayed on Page’ is closed to new replies.