Friend & Love Community and Support Forum  


$_SERVER['PHP_SELF'] in settings.php
Date: 2006/11/12 13:14 By: machelp Status: User  
Karma: 0  
Small Heart

Posts: 15
graphgraph
Holy Success with last patch 1.6.1!!


So the friendnlove script works and act as installing database, i assumed to insert right data into.

The screen on the Front end tell:
Code:

 rename the setup dir

, Ok
Code:

 Rename all files into

.. yes for security..


The result at now
in http://www.solincitta.it/f
is a blank page,
as yuo kindly said i PM you data to check what's wrong

HAppy of your progress!

Ciao

Daniele

Post edited by: machelp, at: 2006/11/12 15:15

Post edited by: admin, at: 2006/11/13 04:01
Click here to see the profile of this user The administrator has disabled public write access.

Re:page blank
Date: 2006/11/13 01:57 By: admin Status: Admin  
Karma: 1  
Admin

Posts: 42
graph
in settings.php

change to
Code:

 error_reporting(E_ALL E_NOTICE); 



so you can see the error.

in your case, change line 54 to
Code:

  $language_page str_replace("/".$script_dir."/"""$_SERVER['PHP_SELF']);




I am not sure why the $_SERVER['PHP_SELF'] has different value in each server so I will figure this out and change something for next patch.
Click here to see the profile of this user The administrator has disabled public write access.

Re:page blank
Date: 2006/11/13 09:03 By: machelp Status: User  
Karma: 0  
Small Heart

Posts: 15
graphgraph
Thanks !
Thanks for correction,
i found useful to read this article about,
http://blog.taragana.com/index.php/archive/understanding-_serverphp_self-php_self- _serverrequest_uri-and-_serverscript_name-in-php-and-when-to-use-what/


The patch works and now the demo loads ,

Just to report,
sure youre working on next release,
At the and i'm learning some php

This the warning,
Warning: main(/home/mhd/www.solincitta.it/htdocs/f/templates/default/pages/tpl-/index.php) [function.main]: failed to open stream: No such file or directory in /home/mhd-01/www.solincitta.it/htdocs/f/templates/default/section-main.php on line 7

Fatal error: main() [function.require]: Failed opening required '/home/mhd/www.solincitta.it/htdocs/f/templates/default/pages/tpl-/index.php' (include_path='./:/usr/local/web/php/lib/pear') in /home/mhd-01/www.solincitta.it/htdocs/f/templates/default/section-main.php on line 7




so gonna check the file section-main.php
Code:

 <?php // no direct access defined'AUTH' ) or die( 'Restricted access' ); //choose the right page to display $ChoosePage str_replace($script_dir."/"""$_SERVER['PHP_SELF']); require($script_path "/templates/" $template_set "/pages/tpl-" $ChoosePage); ?>


the "patch" need sto be xtended to all the script..

so open bb edit on mac..
whatever on PC
search for the entire script $script_dir."/", "", $_SERVER['PHP_SELF']);
replaced with "/".$script_dir."/", "", $_SERVER['PHP_SELF']);

IT works.!

thanks!



Post edited by: machelp, at: 2006/11/14 02:37
Click here to see the profile of this user The administrator has disabled public write access.

sourceforge-logo.png © 2006 Friend & Love Team All rights reserved. • GPL License InformationProject on SouceForge.netTop^