Login Retreive lost passwordRegister
Search

Forum Index / Feedback / Small bug when placing the FHTML dir in other path

[ This topic is solved ]

  Teye Heimans (Founder) 21 November 08 / 14:22  
Changed at 21 November 08 / 14:23
With FormHandler it's possible to place the FH3 directory beneath your web-root.

Only thing you have to make sure of is that the FHTML dir IS in the webroot.

Works fine, but when you make use of the editor, I get this error:

Fatal error: FormHandler::require_once() [function.require]: Failed opening required '/home/***/FH3/FHTML/FCKeditor/fckeditor.php' (include_path='.:/usr/local/lib/php') in /home/***/FH3/class.FormHandler.php on line 761


This error is triggered because of this line:

require_once(FH_INCLUDE_DIR.'FHTML/FCKeditor/fckeditor.php');

Here the code assumes that the FHTML dir is still in the FH3 directory....

  Johan Wiegel (Admin) 21 November 08 / 15:24  
Changed at 21 November 08 / 15:26
add this lines to config.inc.php somewhere arround line 173

// This config var has to point to the FCKEditor directory.
// Default this dir is located in the FH3 directory. If you put it
// somewhere else you have to change this config var.
// added 21-11-2008 By Johan Wiegel in order to make it posible to
// place FH3 outside webroot and FHMTL directory inside webroot
fh_conf('FH_FCK_DIR', FH_INCLUDE_DIR . 'FHTML/FCKeditor/');


AND

replace line 761 in class.FormHandler.php with this one:
require_once(FH_FCK_DIR.'fckeditor.php');

That should do the trick.
Of course you have to alter the FH_FCK_DIR in your situation.

  Johan Wiegel (Admin) 27 November 08 / 15:09  
dit is in versie FH3 v2.1.7 aangepast.

  Top


powered by PHP-GLOBE   © 2004 - 2012 FormHandler. All rights reserved.   -   Open source license