Jump to content

theo

Members
  • Posts

    299
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by theo

  1. Thank you, but I guess this won't work either, because it wants a path "relative to site root" and this ends up in the same problem afaics. Thanks for your time.
  2. It is the way of "mod_userdir" https://httpd.apache.org/docs/2.4/mod/mod_userdir.html
  3. Hello Thank you for AdminOnSteroids. Very helpful. However one problem: I was trying to load a "cke.js" using the preset path. On line 1025 of AdminOnSteroids.module, it is looking for this file in if (file_exists($rootPath . $ckeJS)) { However in my case, this would be (output of echo $rootPath . $ckeJS:) /home/theo/public_html/~theo/pw3061/site/templates/admin/cke.js Is this because I have a non root (mod_userdir) installation of PW? The file is loaded, if I set the path directly in the code before "file_exists" like: $configData['customCKEScript'] = $ckeJS; Thank you.
  4. Yes, thank you. Found it myself one minute ago. I will try this. I think this will to the job.
  5. Thank you. How can I define where to store new PagesTables?
  6. Hello I know this thread is not new, but I'm trying to achieve something similar. I would like to have a certain template prefix for PageTables which then are not shown in the admin tree (never, not only for certain users/roles). For a start, I have changed wire/modules/Process/ProcessPageList/ProcessPageListRenderJSON.php. (See diff in attachment). To my surprise, this seems to do exactly what I need for templates starting with "pt_". This is the first time I am doing some work on the "system" so be gentle please. ;-) My question: How can I take this to a module (or??), so that it does not get deleted with upgrades? ProcessPageListRenderJSON.diff
  7. Thank you. I've found this thread for understanding why it is not in the core: https://processwire.com/talk/topic/10691-pro-modules-where-is-pw-heading/
  8. Hello I would like to preview changes I've just made to a page in the backend ("unsaved" changes). I would not like to hide the current page on the public website. Is this possible? I can't find out how. In 2011 Ryan said this was coming soon. https://processwire.com/talk/topic/708-preview-locking-versions-and-multiple-trees/#comment-5790 I have tried http://modules.processwire.com/modules/process-preview/ but it doesn't work in 3.0.42. I have also tried version control, http://modules.processwire.com/modules/version-control/ But I don't know if this is possible with module "VersionControl". Can you help? Thank you.
  9. Hi @Adrian Yes, 0.6.9 seems to work better than 0.7.0 Thank you!
  10. Will this module be updated for PW 3.x? I have problems like: "Call to a member function setLanguageValue() on a non-object" Line 1441 of ProcessMigrator.module. Is there a similar working tool for copying local pages (trees) to remote? Thank you.
  11. Not sure if this belongs here and maybe everybody knows it, but I just found out how to use code assistance of Netbeans IDE with Processwire code. Looks helpful to me / for beginners. /* @var $input ProcessWire\WireInput */ or in a class: /** @var ProcessWire\WireArray */ protected $pw = NULL; Hope it helps.
  12. Yes! I removed those two rows and now I can log in. Thank you! But what does it mean? Don't I need this SessionHandlerDB stuff? I still have a message "Field: Fieldtype 'FieldtypeAdminCustomPagesSelect' does not exist" though. It seems like a minor problem, but why is that? Thanks again.
  13. @horst: Yes the frontend is working. I have already recreated the cache folder and emptied the "caches" table in the db. @arjen: How can I do that? Thank you!
  14. Thank you. I have read all this before, but it doesn't help. Permissions of site/assets/ are: ------------------------------------------------------------------------------- -rwxrwxrwx+ 1 wwwrun www 205 17. Feb 14:59 active.php drwxrwxrwx+ 1 wwwrun www 76 22. Feb 21:51 cache drwxrwxrwx+ 1 wwwrun www 54 22. Feb 16:47 files -rwxrwxrwx+ 1 wwwrun www 208 17. Feb 14:45 index.php -rwxrwxrwx+ 1 wwwrun www 161 17. Feb 14:58 installed.php drwxrwxrwx+ 1 wwwrun www 152 18. Feb 23:03 logs drwxrwxrwx+ 1 wwwrun www 45032 14. Jul 17:37 sessions ------------------------------------------------------------------------------- I have an installation of exactly the same version of PW (ProcessWire 2.7.2) on the same machine (with installer) in a different folder/database. It works without problems. The copy from the web however does not. I have copied all the files and the DB, adjusted .htaccess, site/config.php, copied the $config->userAuthSalt. What else can I try? Thank you!
  15. Hi, I have a PW Site on a remote Server and wanted a local copy. So i have copied everything, files and database, made some adjustments and voila, the frontend is running under mod_userdir. But I can not login into the backend. I'm getting all sorts of errors. Please see also "Fatal error: Uncaught exception 'PDOException'" at the bottom My site/assets and config.php is writeable. Which could be the problem(s)? Thank you. --------------------------------------------------------------------------------------------------------------------------------------------------------------- Field: Fieldtype 'FieldtypeAdminCustomPagesSelect' does not exist ProcessWire: ProcessLogin: This request was aborted because it appears to be forged. DEBUG MODE BACKTRACE ($config->debug == true): #0 /home/theo/public_html/schweigpw_remote/wire/modules/Inputfield/InputfieldForm.module(98): SessionCSRF->validate() #1 [internal function]: InputfieldForm->___processInput(Object(WireInputData)) #2 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(398): call_user_func_array(Array, Array) #3 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(333): Wire->runHooks('processInput', Array) #4 /home/theo/public_html/schweigpw_remote/wire/modules/Process/ProcessLogin/ProcessLogin.module(132): Wire->__call('processInput', Array) #5 /home/theo/public_html/schweigpw_remote/wire/modules/Process/ProcessLogin/ProcessLogin.module(132): InputfieldForm->processInput(Object(WireInputData)) #6 [internal function]: ProcessLogin->___execute() #7 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(398): call_user_func_array(Array, Array) #8 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(333): Wire->runHooks('execute', Array) #9 /home/theo/public_html/schweigpw_remote/wire/core/ProcessController.php(236): Wire->__call('execute', Array) #10 /home/theo/public_html/schweigpw_remote/wire/core/ProcessController.php(236): ProcessLogin->execute() #11 [internal function]: ProcessController->___execute() #12 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(398): call_user_func_array(Array, Array) #13 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(333): Wire->runHooks('execute', Array) #14 /home/theo/public_html/schweigpw_remote/wire/core/admin.php(94): Wire->__call('execute', Array) #15 /home/theo/public_html/schweigpw_remote/wire/core/admin.php(94): ProcessController->execute() #16 /home/theo/public_html/schweigpw_remote/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/home/theo/publ...') #17 /home/theo/public_html/schweigpw_remote/site/templates/admin.php(15): require('/home/theo/publ...') #18 /home/theo/public_html/schweigpw_remote/wire/core/TemplateFile.php(182): require('/home/theo/publ...') #19 [internal function]: TemplateFile->___render() #20 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(398): call_user_func_array(Array, Array) #21 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(333): Wire->runHooks('render', Array) #22 /home/theo/public_html/schweigpw_remote/wire/modules/PageRender.module(422): Wire->__call('render', Array) #23 /home/theo/public_html/schweigpw_remote/wire/modules/PageRender.module(422): TemplateFile->render() #24 [internal function]: PageRender->___renderPage(Object(HookEvent)) #25 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(398): call_user_func_array(Array, Array) #26 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(333): Wire->runHooks('renderPage', Array) #27 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(459): Wire->__call('renderPage', Array) #28 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(459): PageRender->renderPage(Object(HookEvent)) #29 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(333): Wire->runHooks('render', Array) #30 /home/theo/public_html/schweigpw_remote/wire/modules/Process/ProcessPageView.module(187): Wire->__call('render', Array) #31 /home/theo/public_html/schweigpw_remote/wire/modules/Process/ProcessPageView.module(187): Page->render() #32 [internal function]: ProcessPageView->___execute(true) #33 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(398): call_user_func_array(Array, Array) #34 /home/theo/public_html/schweigpw_remote/wire/core/Wire.php(333): Wire->runHooks('execute', Array) #35 /home/theo/public_html/schweigpw_remote/index.php(209): Wire->__call('execute', Array) #36 /home/theo/public_html/schweigpw_remote/index.php(209): ProcessPageView->execute(true) #37 {main} ProcessWire AdminLogin The process returned no content. ProcessWire 2.7.2 © 2016 Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'id' at row 1' in /home/theo/public_html/schweigpw_remote/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module:109 Stack trace: #0 /home/theo/public_html/schweigpw_remote/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module(109): PDOStatement->execute() #1 [internal function]: SessionHandlerDB->write('0pmdm6l560fqn3q...', 'Session|a:3:{s:...') #2 [internal function]: session_write_close() #3 {main} thrown in /home/theo/public_html/schweigpw_remote/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module on line 109
  16. Hi Thanks for the Template Editor. It's great! For PW 3.0 I had to change line 274 from: if("$fm" == $baseClass || is_subclass_of("$fm", $baseClass))to: if("$fm" == $baseClass || is_subclass_of("$fm", $baseClass) || is_subclass_of("$fm", "ProcessWire\\".$baseClass)) Not sure if it is the best way, but it lets me choose "AceExtended" again from the "Inputfield Type" list. I am an absolute beginner with PW. Thank you.
  17. Thank you. I have set up a subdomain in the meantime. I have to add all (later) possible domains to $config->httpHosts in this case too, right? Can you explain why this is necessary?
  18. Oh, yes. I overlooked the "subdomain". That would have been my next idea, and probably the best. Thank you all.
  19. Hello flydev Thank you. But this means, that the website will still run under http://yoursite.com/pw/ when it's ready. Right? If I move the installation to webroot later, the media URLs will be wrong. Is it true? This is not actually what I was looking for. Thanks. ---------------------------------------------------- Hello szabesz This is not a problem. Typo3 will be removed when PW is ready. Thank you.
  20. Hello This is probably a FAQ, but I could not find anything I have an existing Website using Typo3. I would like to develop a newly designed website with PW on the same web root. Which is the best way to do this? Typo3 has an index.php in web root. How can I keep running the old website until the new one (PW) is ready and tested? Do I have to use a subfolder or can I test it on the final destination (root)? Thank you and sorry for my English.
×
×
  • Create New...