Fork me on GitHub

PHP Script Block  Bottom

  • I've added a PHP script block to my site and it wont let me in :shock:

    The following is the error message received.

    Fatal error: Call to a member function on a non-object in /homepages/19/d95133377/htdocs/wsc95133385/Nuke/html/includes/blocks/php.php(55) : eval()'d code on line 32

    Is there any way to undo the mess that I've created :P The Swiss Army Knife doesnt seem to give me any option to reverse. I opened the /includes/block/php.php file and this is the code on lines# 30,31, and 32:

    if (strpos($_SERVER['PHP_SELF'], 'php.php')) {
    die ("You can't access this file directly...");
    }
    Unfortunatley, I cant add the PHP code that I used in the PHP block. But here is a link to view it if needed http://www.csf-swat.…scroll_sentinel.php
  • Go into your DB, in the table _blocks and find the line for your block.

    Empty the pn_content field or replace the content with something simple like :

    Code

    printf("Hullo !");
  • Worked like a charm...Thanks very much dude
  • 0 users

This list is based on users active over the last 60 minutes.