Welcome to Geeklog, Anonymous Monday, December 05 2022 @ 07:40 pm EST

Geeklog Forums

Includes in Static Pages


Status: offline

watcorp

Forum User
Junior
Registered: 09/03/02
Posts: 23
awake
I am testing out 1.4.1rc1 and there seems to be an issue with using PHP includes in static pages. Any thoughts?

Here is a sample of the error output.....

Text Formatted Code
An error has occurred:
2 - include() [function.include]: URL file-access is disabled in the server configuration @ /usr/www/htdocs/plugins/staticpages/functions.inc(841) : eval()'d code line 1

array(5) {
  ["sp_content"]=>
  string(91) "include "http://www.glpath.net/staticpages/index.php?page=ec_lookup";
echo "<br><br>";

"
  ["sp_php"]=>
  string(1) "2"
  ["_SP_CONF"]=>
  &array(11) {
    ["version"]=>
    string(5) "1.4.3"
    ["allow_php"]=>
    int(1)
    ["sort_by"]=>
    string(2) "id"
    ["sort_menu_by"]=>
    string(5) "label"
    ["delete_pages"]=>
    int(0)
    ["in_block"]=>
    int(1)
    ["show_hits"]=>
    int(1)
    ["show_date"]=>
    int(1)
    ["filter_html"]=>
    int(0)
    ["censor"]=>
    int(1)
    ["default_permissions"]=>
    array(4) {
      [0]=>
      int(3)
      [1]=>
      int(2)
      [2]=>
      int(2)
      [3]=>
      int(2)
    }
  }
  ["LANG_STATIC"]=>
  &array(75) {
    ["newpage"]=>
    string(8) "New Page"
    ["adminhome"]=>
    string(10) "Admin Home"
    ["staticpages"]=>
    string(12) "Static Pages"
    ["staticpageeditor"]=>
    string(18) "Static Page Editor"
    ["writtenby"]=>
    string(10) "Written By"
    ["date"]=>
    string(12) "Last Updated"
    ["title"]=>
    string(5) "Title"
    ["content"]=>
    string(7) "Content"
    ["hits"]=>
    string(4) "Hits"
    ["staticpagelist"]=>
    string(16) "Static Page List"
    ["url"]=>
    string(3) "URL"
    ["edit"]=>
    string(4) "Edit"
    ["lastupdated"]=>
    string(12) "Last Updated"
    ["pageformat"]=>
    string(11) "Page Format"
    ["leftrightblocks"]=>
    string(19) "Left & Right Blocks"
    ["blankpage"]=>
    string(10) "Blank Page"
    ["noblocks"]=>
    string(9) "No Blocks"
    ["leftblocks"]=>
    string(11) "Left Blocks"
    ["addtomenu"]=>
    string(11) "Add To Menu"
    ["label"]=>
    string(5) "Label"
    ["nopages"]=>
    string(37) "No static pages are in the system yet"
    ["save"]=>
    string(4) "save"
    ["preview"]=>
    string(7) "preview"
    ["delete"]=>
    string(6) "delete"
    ["cancel"]=>
    string(6) "cancel"
    ["access_denied"]=>
    string(13) "Access Denied"
    ["access_denied_msg"]=>
    string(149) "You are illegally trying access one of the Static Pages administration pages.  Please note that all attempts to illegally access this page are logged"
    ["all_html_allowed"]=>
    string(19) "All HTML is allowed"
    ["results"]=>
    string(20) "Static Pages Results"
    ["author"]=>
    string(6) "Author"
    ["no_title_or_content"]=>
    string(69) "You must at least fill in the <b>Title</b> and <b>Content</b> fields."
    ["no_such_page_anon"]=>
    string(15) "Please log in.."
    ["no_page_access_msg"]=>
    string(201) "This could be because you're not logged in, or not a member of Glpath MDB. Please <a href="http://www.glpath.net/users.php?mode=new"> become a member</a> of Glpath MDB to receive full membership access"
    ["php_msg"]=>
    string(5) "PHP: "
    ["php_warn"]=>
    string(95) "Warning: PHP code in your page will be evaluated if you enable this option. Use with caution !!"
    ["exit_msg"]=>
    string(11) "Exit Type: "
    ["exit_info"]=>
    string(90) "Enable for Login Required Message.  Leave unchecked for normal security check and message."
    ["deny_msg"]=>
    string(113) "Access to this page is denied.  Either the page has been moved/removed or you do not have sufficient permissions."
    ["stats_headline"]=>
    string(20) "Top Ten Static Pages"
    ["stats_page_title"]=>
    string(10) "Page Title"
    ["stats_hits"]=>
    string(4) "Hits"
    ["stats_no_hits"]=>
    string(86) "It appears that there are no static pages on this site or no one has ever viewed them."
    ["id"]=>
    string(2) "ID"
    ["duplicate_id"]=>
    string(82) "The ID you chose for this static page is already in use. Please select another ID."
    ["instructions"]=>
    string(266) "To modify or delete a static page, click on that page's edit icon below. To view a static page, click on the title of the page you wish to view. To create a new static page, click on "Create New" above. Click on on the copy icon to create a copy of an existing page."
    ["centerblock"]=>
    string(13) "Centerblock: "
    ["centerblock_msg"]=>
    string(85) "When checked, this Static Page will be displayed as a center block on the index page."
    ["topic"]=>
    string(7) "Topic: "
    ["position"]=>
    string(10) "Position: "
    ["all_topics"]=>
    string(3) "All"
    ["no_topic"]=>
    string(13) "Homepage Only"
    ["position_top"]=>
    string(11) "Top Of Page"
    ["position_feat"]=>
    string(20) "After Featured Story"
    ["position_bottom"]=>
    string(14) "Bottom Of Page"
    ["position_entire"]=>
    string(11) "Entire Page"
    ["head_centerblock"]=>
    string(11) "Centerblock"
    ["centerblock_no"]=>
    string(2) "No"
    ["centerblock_top"]=>
    string(3) "Top"
    ["centerblock_feat"]=>
    string(11) "Feat. Story"
    ["centerblock_bottom"]=>
    string(6) "Bottom"
    ["centerblock_entire"]=>
    string(11) "Entire Page"
    ["inblock_msg"]=>
    string(12) "In a block: "
    ["inblock_info"]=>
    string(28) "Wrap Static Page in a block."
    ["title_edit"]=>
    string(9) "Edit page"
    ["title_copy"]=>
    string(24) "Make a copy of this page"
    ["title_display"]=>
    string(12) "Display page"
    ["select_php_none"]=>
    string(18) "do not execute PHP"
    ["select_php_return"]=>
    string(20) "execute PHP (return)"
    ["select_php_free"]=>
    string(11) "execute PHP"
    ["php_not_activated"]=>
    string(152) "The use of PHP in static pages is not activated. Please see the <a href="http://www.glpath.net/docs/staticpages.html#php">documentation</a> for details."
    ["printable_format"]=>
    string(16) "Printable Format"
    ["copy"]=>
    string(4) "Copy"
    ["limit_results"]=>
    string(13) "Limit Results"
    ["search"]=>
    string(6) "Search"
    ["submit"]=>
    string(6) "Submit"
  }
  ["retval"]=>
  string(0) ""
}
 

We never stop looking... ...for a better way
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The error message clearly states what the problem is and that it has nothing to do with Geeklog but with your server's configuration ...

bye, Dirk
 Quote

Status: offline

watcorp

Forum User
Junior
Registered: 09/03/02
Posts: 23
Thanks Dirk....I modified the php.ini on that server and it fixed it right up....

Text Formatted Code
allow_url_include = On


appreciate it

Cary
We never stop looking... ...for a better way
 Quote

All times are EST. The time is now 07:40 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content