The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Change Cache location - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4)
+--- Thread: Change Cache location (/showthread.php?tid=28291)

Pages: 1 2


Change Cache location - jamesinger - Sep 26th, 2017

I am installing Form Tools to a web server and when first starting it needs to have the \themes\default\cache writable

I need this movedto another folder ??

As the folders are not writable - i need to change this to another top level folder.

Hoe do I do this ??

please advise


RE: Change Cache location - Ben - Sep 26th, 2017

Hi jamesinger,

I'm afraid the cache folder location can't be configured at this point. May I ask, why is there this restriction in place? On security grounds? I can perhaps slip this into the new Form Tools 3 alpha that's coming out if there's a legitimate need for it.

Thanks!

Ben


RE: Change Cache location - jamesinger - Sep 27th, 2017

Because the writable folder should not be exposed to the world, security would be compromised otherwise.

Is there a way to change the default folder for the theme location ?? programitically ?

If i cant figure this out then i cant use it.

Please assist.


RE: Change Cache location - jamesinger - Sep 27th, 2017

NOTE: I dont use formtools for anything apart from using the action in my own forms and then the procesing and email sending.

Is there a cut down version that does not need a cache folder ?? or theme ?


RE: Change Cache location - Ben - Sep 28th, 2017

Hi James,

Unfortunately Form Tools uses the theme cache folders for all sorts of internal rendering & file generation - not just for the theme page generation. So no, some sort of cache folder will always be required.

However, I'll put this down as a feature request to allow it to be customizable and get to it in an upcoming alpha. I just need to rethink the installation script a little to allow you to define this custom value.

Thanks! And sorry I couldn't be more help in the meantime!

Ben


RE: Change Cache location - nelsondcosta - Sep 28th, 2017

Well kinda late, and I ll check this tomorow.

Check folder premission. 755

And if the path its right on your config filé


RE: Change Cache location - jamesinger - Sep 28th, 2017

(Sep 28th, 2017, 2:00 PM)nelsondcosta Wrote: Well kinda late, and I ll check this tomorow.

Check folder premission. 755

And if the path its right on your config filé

if there is anyway to change to cache folder location or entire theme then i can get it to work


RE: Change Cache location - Ben - Sep 28th, 2017

Sorry James, I'm afraid the locations aren't yet customizable.

But by the way, it's not considered a security problem to have these folders in your webroot (just in case anyone's worried!) which is why I wondered. The cache files generated by Smarty are all PHP files and can't be read via the web - only if you're logged onto the webserver.

I've created the feature request here with some notes for myself about how it could be implemented.
https://github.com/formtools/core/issues/74

Ben


RE: Change Cache location - jamesinger - Sep 28th, 2017

okthanks for that - ok another question, i got around the writable part but now when i hot continue on first page it goes one folder up - here is current url https://DOMAIN URL/itsforms/install/index.php, when i hit continue it goes to https://DOMAIN URL/install/index.php


RE: Change Cache location - jamesinger - Oct 3rd, 2017

thanks all - i fised it at our end - web config