DirectPHP - FAQs, Troubleshoot and Tips & Techniques
Written by kksou   
Thursday, 03 September 2009

This is the FAQ for the DirectPHP plugin.

Troubleshooting

  1. Q: My PHP codes are not processed.
  2. A: Did you enable the plugin? Go to Plugin Manager and make sure the plugin is enabled.

  3. Q: My PHP codes disappeared after clicking Save or Apply.
  4. A: Have you applied the following tip: How to enter HTML tags, javascript and PHP codes in Joomla 1.5.8?

  5. Q: My PHP codes disappeared after clicking Save or Apply.
  6. A: Do not use the "source button" in TinyMCE.

    Just type the codes right inside TinyMCE in the default WYSIWIG (what-you-see-is-what-you-get) mode.

Plugin Conflicts

If you've tried all of the above, and it still does not work, it might be because of conflicts with some other plugins or modules. To ascertain this,

  • Please try the plugin on a fresh install of Joomla. This will allow you to know if the plugin works on your machine at all.
  • If the plugin works on your fresh install of Joomla, then you could try add in the rest of the plugins and modules one by one until you find the one that causes the conflict.


User contributed Tips & Techniques
  1. kksou
    September 03, 2009 6:56am
    I get an error message "restricted access" when I try and edit the parameters of DirectPHP

    Please refer to: Forum TOPIC: restricted access issue... by Desq.

  2. kksou
    September 03, 2009 6:57am
    I get an error message "The following command is not allowed: backticks (``)"

    Please refer to: Forum TOPIC: The following command is not allowed: backticks by Teezone.

  3. kksou
    September 03, 2009 7:08am
    The following code is not showing though

    <?php
    $olderror_reporting =error_reporting(0);
    include(\\\"http://rss.website.com/rss.php?
    url=http%3A%2F%2Fmy.abcnews.go.com%2F
    rsspublic%2F2020_rss20.xml&newpage=1&chead=1&atl=1
    &desc=1&owncss=&eleminate=&auth=1&dts=1&width=300
    &max=5&maxfrom=5&maxto=10&tlen=0&rnd=1&bt=3&bs=Double&nmb=1
    &ntb=&naf=&nst=&nwd=0&nht=0&initime=1234937032
    &dlttime=0&dlen=0&bg=%23FFFFFF&bc=BLUE&tc=BLACK
    &ts=11&spc=1&ims=1&lc=BLUE&lstyle=-1&rel=
    &tfont=Verdana,+Arial,+Sans-serif&rf=\\\"
    .$HTTP_SERVER_VARS[\\\'SERVER_NAME\\\'].
    $HTTP_SERVER_VARS[\\\'PHP_SELF\\\'].\\\"&phpout=1\\\");
    error_reporting($olderror_reporting);
    ?>


    Please refer to: Forum TOPIC: Beloved Direct PHP for Joomla 1.5.9 by Lawiet.

  4. kksou
    September 03, 2009 7:16am
    How to enable DirectPHP in Virtuemart Product Description

    If you're using the latest VM version, there is a setting in the VM config which enables plugins to work on VM templates. Frontend Features on the Global tag.
    Source: http://forum.joomla.org/viewtopic.php?f=473&t=416257

  5. kksou
    September 05, 2009 8:13pm
    When you use DirectPHP to access data from another mysql database/db, remember to switch it back to the joomla db.

    Please refer to: Forum TOPIC: Errors when embedding a form by Markstein.

Note: You have to be a registered member to leave a comment. Free registration here.

 
< Prev

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2009. kksou.com. All Rights Reserved