theo
Members-
Posts
299 -
Joined
-
Last visited
-
Days Won
1
Everything posted by theo
-
Thanks, I will read that. I have solved the problem with (Line 250) if (function_exists('apache_get_modules') && (in_array('mod_userdir', apache_get_modules()))) {
-
Hmm, there is a little regression on a free webhosting platform I am using: Fatal error: Call to undefined function apache_get_modules() in /users/pwdev/www/site/assets/cache/FileCompiler/site/modules/Duplicator/ProcessDuplicator.module on line 250 The module worked before on this host, but not any longer in version 1.1.4 http://phpinfo.square7.ch/ Thank you.
-
Yes sure, but still adrian was asking how mod_userdir may affect other modules. Where normally http://mydomain.com/processwire maps to /myfilesystemroot/processwire http://localhost/~theo/pwdev/processwire/ does not follow the same rule: /myfilesystemroot/~theo/pwdev/processwire/ is not a valid file path. This should be: /myfilesystemroot/pwdev/processwire/
-
I don't know what it is supposed to return, but /~theo/pwdev/processwire/setup/ is not a valid path on the file system. I think confusion comes from the "calculation" of file paths.
-
Here it returns: /~theo/pwdev/processwire/setup/ Thanks.
-
Thank you, but no, same problem. Maybe there is something "wrong" with my installation.
-
Thank you. It works now with mod_userdir and PW 3.0.83, but it does still not work with 2.7.2 The log says: 2017-12-07 15:23:13: Package build failed. 2017-12-07 15:23:13: An error occured during package build. 2017-12-07 15:23:13: An error occured while building the ProcessWire structure.
-
Yes, and I can tell you that it works, when I configure a virtual host in Apache and add "127.0.0.1 pwdev.ch" in the hosts file. <VirtualHost *:80> ServerAdmin some@some.ch ServerAlias pwdev.ch ServerName www.pwdev.ch DocumentRoot /home/theo/public_html/pwdev </VirtualHost> Then running under http://pwdev.ch/processwire/ everything is fine. So it has to do with mod_userdir. Thank you.
-
There is no such file. But there is a warning on the package manager page: Warning: filesize(): stat failed for /home/theo/public_html/pwdev/site/assets/logs/duplicator.txt in /home/theo/public_html/pwdev/wire/core/FileLog.php on line 225 Warning: filesize(): stat failed for /home/theo/public_html/pwdev/site/assets/logs/duplicator.txt in /home/theo/public_html/pwdev/wire/core/FileLog.php on line 225 Warning: filesize(): stat failed for /home/theo/public_html/pwdev/site/assets/logs/duplicator.txt in /home/theo/public_html/pwdev/wire/core/FileLog.php on line 237 Warning: file(/home/theo/public_html/pwdev/site/assets/logs/duplicator.txt): failed to open stream: Datei oder Verzeichnis nicht gefunden in /home/theo/public_html/pwdev/wire/core/FileLog.php on line 238 And there is a mesage after pressing "Initiate Backup Process" No route, document, custom route or redirect is matching the request: /~theo/pwdev/~theopwdevprocesswire/setup/duplicator/?action=none | Specific ERROR: No route matched the request
-
This: path /home/theo/public_html/pwdev/site/templates/ url /~theo/pwdev/site/templates/ Thank you.
-
Thank you. No, it does not work here right now, but I think it does not have to do with the PW version, because it does not work with 3.0.83 either. Could it be because I'm using mod_userdir? https://httpd.apache.org/docs/2.4/mod/mod_userdir.html Where in my case File root of PW: /home/theo/public_html/pwdev/ Web root of PW: http://localhost/~theo/pwdev/ Thank you.
-
Hi I have a PW 2.7.2. installation. According to to docs, your module should work with 2.7 resp. 2.7.2 but it does not install because of const DUP_MIN_VERSION = '2.7.3'; Is there a technical reason for this, or can I safely change the DUP_MIN_VERSION to '2.7.2' in the module source? Thank you.
-
Module: AIOM+ (All In One Minify) for CSS, LESS, JS and HTML
theo replied to David Karich's topic in Modules/Plugins
For me, this works: private static function _getCacheName($files, $prefix = 'css_', $ext = '.css') { // ------------------------------------------------------------------------ // Initialize timestamp variable. // ------------------------------------------------------------------------ $_timestamp = 0; //<-theo // ------------------------------------------------------------------------ // Calculate timestamp of all files // ------------------------------------------------------------------------ foreach ($files as $file) { //$_timestamp = ($_timestamp + $file['last_modified']); $_timestamp += ($file['last_modified'] + hexdec(md5(basename($file['absolute_path'])))); //<--theo } // ------------------------------------------------------------------------ // Create a unique MD5 file name with the specified prefix. // ------------------------------------------------------------------------ return (self::$developmentMode !== true) ? $prefix.md5($_timestamp).$ext : $prefix.md5($_timestamp).'_dev'.$ext; } ..when using AIOM like this: <?php $stylesheets = array( array('loadOn' => 'template=home', 'files' => array('styles/kuengmain.css')), array('loadOn' => 'template=categories', 'files' => array('styles/jquery.fullpage.css','styles/kuengmain.css')), array('loadOn' => 'template=kontakt', 'files' => array('styles/bootstrap_ms.css','styles/kuengmain.css')), ); ?> <link rel="stylesheet" type="text/css" href="<?php echo AllInOneMinify::CSS($stylesheets); ?>" /> Because different files may have the same timestamp. -
Yes! You are right. It's the ImageExtra that causes the problem. Also with 3.0.62. I just didn't think of it. Thank you!
-
Just found out, that this Problem did not exist in ProcessWire 3.0.62 on the same system. I can rename Fields without problem with 3.0.62.
-
If I try to change the name of a field from "bilder" to "bild" in the "admin", I am getting the error message below. Shall I make a bug report? System is: ProcessWire 3.0.83 © 2017 Linux linux-j87s 4.4.92-18.36-default PHP 7.0.7-14.12.1 MariadDB 10.0.31-20.7.1 --- ProcessWire: ProcessField: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'pwkueng.field_bild' doesn't exist DEBUG MODUS ABLAUFVERFOLGUNG ($config->debug == true): #0 /home/theo/public_html/kueng/site/modules/ImageExtra/ImageExtra.module(1285): PDOStatement->execute() #1 /home/theo/public_html/kueng/wire/core/WireHooks.php(808): ProcessWire\ImageExtra->checkTableColumnsAndParseSettings(Object(ProcessWire\HookEvent)) #2 /home/theo/public_html/kueng/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessField), 'executeSave', Array) #3 /home/theo/public_html/kueng/wire/core/ProcessController.php(263): ProcessWire\Wire->__call('executeSave', Array) #4 /home/theo/public_html/kueng/wire/core/Wire.php(380): ProcessWire\ProcessController->___execute() #5 /home/theo/public_html/kueng/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___execute', Array) #6 /home/theo/public_html/kueng/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessController), 'execute', Array) #7 /home/theo/public_html/kueng/wire/core/admin.php(113): ProcessWire\Wire->__call('execute', Array) #8 /home/theo/public_html/kueng/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/home/theo/publ...') #9 /home/theo/public_html/kueng/site/templates/admin.php(15): require('/home/theo/publ...') #10 /home/theo/public_html/kueng/wire/core/TemplateFile.php(287): require('/home/theo/publ...') #11 /home/theo/public_html/kueng/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #12 /home/theo/public_html/kueng/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___render', Array) #13 /home/theo/public_html/kueng/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #14 /home/theo/public_html/kueng/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #15 /home/theo/public_html/kueng/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #16 /home/theo/public_html/kueng/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___renderPage', Array) #17 /home/theo/public_html/kueng/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\PageRender), 'renderPage', Array) #18 /home/theo/public_html/kueng/wire/core/WireHooks.php(808): ProcessWire\Wire->__call('renderPage', Array) #19 /home/theo/public_html/kueng/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Page), 'render', Array) #20 /home/theo/public_html/kueng/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Wire->__call('render', Array) #21 /home/theo/public_html/kueng/wire/core/Wire.php(383): ProcessWire\ProcessPageView->___execute(true) #22 /home/theo/public_html/kueng/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___execute', Array) #23 /home/theo/public_html/kueng/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'execute', Array) #24 /home/theo/public_html/kueng/index.php(55): ProcessWire\Wire->__call('execute', Array) #25 {main}
-
@justb3a: I had this idea before, but it is not really convenient for users (editors) and looks a bit "half-baked". I think this feature should really go into core, as you suggest. Thank you. Edit: Feature request: https://github.com/processwire/processwire-requests/issues/117
-
Very useful Module. Is there a way to hide / unpublish a single image temporarily instead of deleting (trashing) the entire image + information? A checkbox for this would be great. Thank you.
-
You are right. Found Module "PrevNextTabs", which seems to do what i need. Thank you.
-
This is probably a simple question, but I can't find out how to do it. I would like to navigate to the next page (edit the next sibling page) in the backend without using the tree, but just clicking "next". How can I do this? EDIT: OK I have found there is "save and next" which is good. But just "previous/next" without selecting an option from the save button would be nice. Is there sth. like this in AdminOnSteroids?
-
Module: AIOM+ (All In One Minify) for CSS, LESS, JS and HTML
theo replied to David Karich's topic in Modules/Plugins
-
Yes it works. Thank you very much!
-
OK, thank you.
-
I don't know PW well enough, but isn't there a setting anywhere to get or set (in my case:) rootURL: http://localhost/~theo/pw3061/ rootPath: /home/theo/public_html/pw3061/ It think this would be handy in many situations. I'm usually setting such values in init.php, but it should probably go to config.php as a PW standard variable. Or does sth. like this already exist?
-
Thank you Roland. But I can't make it work. I show you what I did to test it. There are 6 "echos" marked like (0) ... (5). Code snippet is from about line 989 of the module. echo $root.' (0)<br>'; echo $rootPath.' (1)<br>'; // remove install subdirectory $rootPath = rtrim($rootPath, $root); echo $rootPath.' (2)<br>'; $rootUrl = $this->config->urls->httpRoot; $rootUrl = rtrim($rootUrl, $root); $templatesUrlRelative = $this->config->urls->templates; echo $rootUrl.' (3) <br>'; echo $templatesUrlRelative.' (4)<br>'; // do not add JS to page on login page if ($this->page->id != 23) { // custom CKEaddons config js and css $ckeCSS = $this->getAssetPath('CKEStyle', 'admin/cke.css', $templatesUrlRelative, $configData, $root); $ckeJS = $this->getAssetPath('CKEScript', 'admin/cke.js', $templatesUrlRelative, $configData, $root); $ckeTemplates = $this->getAssetPath('CKEtemplates', 'admin/templates.js', $templatesUrlRelative, $configData, $root); echo $rootPath . $ckeJS.' (5)<br>'; This outputs: /~theo/pw3061/ (0) /home/theo/public_html/pw3061 (1) /home/theo/public_html (2) http://localhos (3) /~theo/pw3061/site/templates/ (4) /home/theo/public_html/~theo/pw3061/site/templates/admin/cke.js (5) Where settings are: Assets Root Path: /home/theo/public_html/pw3061/ CKEditor custom configuration script: /site/templates/admin/cke.js Thank you.