Jump to content

sebr

Members
  • Posts

    101
  • Joined

  • Last visited

Everything posted by sebr

  1. Hello One of my customers needs to have his site translated by a publisher. He asks me if it is possible to create a role that could only edit the German version of the pages, without permission on the English version. I haven't found any permission related to this need, but maybe it's possible from a hook? Thank you for your help
  2. @ryan Since upgrade to 3.0.172, I have this notification alert : And if use "Publish" button to publish a page I have this notification alert : But if I uncheck "Unpublish" or if I publish from page list, the page is published. Any idea ? How can I look for something to resolve it ?
  3. Great thanks @kongondo It's really a newbie error ?
  4. Hi In my search page, I used a selector like this : $searchQuery = $sanitizer->entities($input->get('q')); $searchQuery = $sanitizer->selectorValue($searchQuery); $selector = 'title|subtitle|summary|html_body_noimg~=' . $searchQuery; $matches = $pages->find($selector); I don't have the same results if $searchQuery contains accent or not. For example, with « bâtiment » I have no result with « batiment » I have onea result : « Les bâtiments et les smart-city » Normally I should have the same results? How can I do that ? Thanks for your help
  5. Thanks for this response. Yes, I also think this is a good solution : just one migrate call. I my case, downgrade is not necessary. The only risk I take concerns manual changes that could be done directly under Processwire. Have a nice day !
  6. hello @bernhard Thanks a lot for this dreamy, powerful and simple migrations module ? It's great and I begun to use it with succes ! I have however one problem ? : I created a module and I use the auto-update system from RockMigrations (0.0.1.php). All is OK with the install and the uninstall. I create a 0.0.2.php and update the version of the module ('version' => '0.0.2'). But when I refresh modules from Processwire, my module update in 0.0.2, but no RockMigrations is executed. When I debug it with Tracy Debuger, I have many errors like this : array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead on line: 171 in /var/www/html/wire/core/WireData.php and another error like this one Maximum function nesting level of '256' reached, aborting! on line: 1733 in /var/www/html/wire/core/Wire.php Any idea to resolve it ? I tried to increase the maximum function nesting level, but it's the same... ? Thanks for your help
  7. Sorry for this late andswer. Thanks a lot for this module I didn't know. It does exactly what I wanted :-)
  8. Hi For example the content tree : Home Page 1 Page 1.a Page 1.b Page 1.b.i Page 1.b.ii Page 2 Page 2.a All pages except Home are using the basic-page template. Is there a way to configure a user role "page1_webmaster" to manage just the branch from root "Page 1" ? Or other solution to restrict a user to manage just a defined branch ? Thanks
  9. Hello I used this module and all work very well. Thanks for this ? I have just 2 questions : Is there a way/option/hook to not appy the clustering in a multi-markers map ? OR define a threshold (10 markers for example or 100 kilometers between markers or 100 pixels between markers) ? Is there a way/option/hook to add margin or padding when fitToMarkers is true ? Because some edge markers are cut... Thanks a lot for your help
  10. Hello Please can you explain how delete a geographic point ? I saw in javascript that if Lat is 0 no marker. But how can I set Lat 0 in the InputField ? Thanks in advance
  11. Thanks for this ! I didn't know gulp-foreach ?
  12. Hi Flydev Can you past your gulpfile.js please. I'm interesting to see how you do main-tpl-css/js tasks ? Thanks a lot
  13. Hi I'm using this great module to display points from a page list. I added a leafletmap field on page template and all is good. That's work ! But now, how can I remove geolocalized informations on some pages ? For example: on a page I set a location to Paris in leafletmap field on the "france" page. Now I would like to delete this geographic information (lat, lng, address, zoom) to remove this point (location to Paris)... How can I do ? When a point is set, it seems to be impossible to delete it... Is there a solution ? Thks in advance
  14. Houra !!! I don't know why, but in the MaintenanceMode module from @Pete, I get a buggy value. I set the field "Redirect to another URL" to "/waiting.html". The maintenance mode was disable but I have strange value in the filed "Redirect to another page instead of the login page?" : it was set to "Login" and impossible to change it. I just uninstalled and install again the module and now all is OK ! Thanks a lot for your help @dragan, @Robin S and @horst
  15. Hi @horst. I just tried your solution. I installed SiteProfileExporter module on production website. I created a backup. I installed on dev a new Processwire install with this site profile, but in the end of the install process, I clicked on "Login To admin" button. Then no admin login form, just a redirection to the home page ! This solution don't work !
  16. OK Then Don't work : I truncate table caches I go to /gestion and I refresh modules twice I'm signing out and I go to www.test.com (Root URL) I go to /gestion and I'm redirecting to root url again ! So I don't understand why !
  17. Them for AOIM module, I replaced in line 707 : // ------------------------------------------------------------------------ // Initialize timestamp variable. // ------------------------------------------------------------------------ $_timestamp = ''; By // ------------------------------------------------------------------------ // Initialize timestamp variable. // ------------------------------------------------------------------------ $_timestamp = 0; And All is good !
  18. Hi @Robin S I read this post and I refresh Modules. But some module don't work anymore. For example, I use AOIM and for CSS cal I have this error : <br /><b>Warning</b>: A non-numeric value encountered in <b>/home/srufer/public_html/client_mairiestoffenge/www/site/assets/cache/FileCompiler/site/modules/AllInOneMinify/AllInOneMinify.module</b> on line <b>713</b><br /> /site/assets/aiom/css_b828a2467647aa875f44be4891e380f6.css
  19. OK. Then I downloaded all processwire folder from prod to dev. I dump the prod database and import it in the dev environnement. And... It's the same thing on dev : when I go to the admin path I'm redirecting to root URL. If I truncate the caches table in the dev database : I get the login form but lot off bugs because of the truncate caches table... How can I do without this bad effect ?
  20. I also tried to rename in the database the page ID 2 from "gestion" to "processwire" but the result is /processwire is redirecting to / without login form...
  21. @dragan Sorry I'm not well expressed. I just wanted to say that if /gestion73100 was not recognized, I would have got a 404 error. If I go to https://www.test.com/gestion (the admin path) I'am redirecting (302) to https://www.test.com/ (root path) without any option to login. I already read this chapter about login troubleshooting but I don't find a solution... In PW error log and Apache error log, I don't see anything bad. I don't understand what happens. This morning all was good. I just installed PageimageRemoveVariations module. Is it possible to delete the last installed module : PageimageRemoveVariations ?
  22. In the Filecompiler log : 2018-05-02 23:24:03 guest https://www.test.com:443/gestion Compiled file: /site/modules/MarkupCookieConsent/MarkupCookieConsent.config.php 2018-05-02 23:24:04 guest https://www.test.com:443/gestion/login/ Compiled file: /site/modules/ProcessWireUpgrade/ProcessWireUpgradeCheck.module 2018-05-02 23:24:04 guest https://www.test.com:443/gestion/login/ Compiled file: /site/modules/ProcessWireUpgrade/ProcessWireUpgradeCheck.config.php 2018-05-02 23:24:04 guest https://www.test.com:443/ Compiled file: /site/templates/_init.php 2018-05-02 23:24:04 guest https://www.test.com:443/ Compiled file: /site/templates/home.php 2018-05-02 23:24:04 guest https://www.test.com:443/ Compiled file: /site/modules/ProcessMenuBuilder/MarkupMenuBuilder.module 2018-05-02 23:24:04 guest https://www.test.comr:443/ Compiled file: /site/modules/FieldtypeFontIconPicker/InputfieldFontIconPicker.module 2018-05-02 23:24:04 guest https://www.test.com:443/ Compiled file: /site/modules/FieldtypeFontIconPicker/Icons/FontAwesome.php I found /gestion/login/ but after I redirected to /
  23. Is there a way to track where the redirect runs ? The admin access is OK else not I have got the 404 page...
  24. I deleted all folders in site/assets/cache but nothing better. In my config.php : <?php namespace ProcessWire; /** * ProcessWire Configuration File * * Site-specific configuration for ProcessWire * * Please see the file /wire/config.php which contains all configuration options you may * specify here. Simply copy any of the configuration options from that file and paste * them into this file in order to modify them. * * SECURITY NOTICE * In non-dedicated environments, you should lock down the permissions of this file so * that it cannot be seen by other users on the system. For more information, please * see the config.php section at: https://processwire.com/docs/security/file-permissions/ * * This file is licensed under the MIT license * https://processwire.com/about/license/mit/ * * ProcessWire 3.x, Copyright 2016 by Ryan Cramer * https://processwire.com * */ if(!defined("PROCESSWIRE")) die(); ini_set('session.gc_probability', 1); /*** SITE CONFIG *************************************************************************/ /** @var Config $config */ /** * Enable debug mode? * * Debug mode causes additional info to appear for use during dev and debugging. * This is almost always recommended for sites in development. However, you should * always have this disabled for live/production sites. * * @var bool * */ $config->debug = false; /*** INSTALLER CONFIG ********************************************************************/ /** * Installer: Database Configuration * */ $config->dbHost = '###'; $config->dbName = '###'; $config->dbUser = '###'; $config->dbPass = '###'; $config->dbPort = '3306'; $config->chmodDir = '0755'; // permission for directories created by ProcessWire $config->chmodFile = '0644'; // permission for files created by ProcessWire $config->httpHosts = array('www.test.com'); /** * Installer: User Authentication Salt * * Must be retained if you migrate your site from one server to another * */ $config->userAuthSalt = 'fc4e33ee2fc1b999878c0cb3da87f2ce'; /** * Installer: File Permission Configuration * */ /** * Installer: Time zone setting * */ $config->timezone = 'Europe/Paris'; setlocale(LC_ALL, "fr_FR.UTF-8"); /** * Installer: Unix timestamp of date/time installed * * This is used to detect which when certain behaviors must be backwards compatible. * Please leave this value as-is. * */ $config->installed = 1510667390; ini_set('session.gc_probability', 1); $config->sessionFingerprint=false; /** * Template prepend file * */ $config->prependTemplateFile = '_init.php';
×
×
  • Create New...