-
Posts
542 -
Joined
-
Last visited
-
Days Won
1
ceberlin's Achievements
-
Hi, after the recent update to 0.5.0 I cannot log out from the backend anymore, I get this error message on the logout page: "Tag parameter is missing" and I remain logged in. Double checked: Uninstalling: log out works. Re-installing: log out works not. Can you confirm this?
-
When trying to run the cleanup im the HOOKS file, I get this error (PHP 8.3): You can't specify target table 'process_login_history' for update in FROM clause ChatGPT suggests this: Problematic query: $sql = "DELETE FROM " . self::TABLE_NAME . " WHERE login_timestamp <= (SELECT login_timestamp FROM " . self::TABLE_NAME . " ORDER BY login_timestamp DESC LIMIT $max_rows, 1)"; MySQL does not allow modifying a table (DELETE) while reading from it in a subquery (SELECT from the same table). Use a Derived Table Modify the query to avoid directly reading from the same table: $sql = "DELETE FROM " . self::TABLE_NAME . " WHERE login_timestamp <= (SELECT min_login_timestamp FROM (SELECT login_timestamp AS min_login_timestamp FROM " . self::TABLE_NAME . " ORDER BY login_timestamp DESC LIMIT $max_rows, 1) AS temp_table)"; This forces MySQL to materialize the subquery result before executing the delete. I changed that and the error is gone.
-
Switch from TinyMCE to CKEditor : custom block element
ceberlin replied to ceberlin's topic in General Support
Nevermind. I prepare switching to TinyMCE. -
Switch from TinyMCE to CKEditor : custom block element
ceberlin replied to ceberlin's topic in General Support
I got Tiny running with divs. Now I need this for CKE, to be able to convert. I now found a plugin https://ckeditor.com/cke4/addon/div. Very convenient. With this I could figure out DIV in the meantime. I put this in the site/modules/InputfieldCKEditor/plugins and now there is such an element. I am pretty sure that I can tweak this to work for a <section> instead (as a separate plugin based on the same code). Now the remaining problem is how I get HTMLpurifier to recognize the html5 tag. -
I would like to switch from TinyMCE to CKEditor. But I was stopped because I cannot implement a custom block element, like <div>. I need an extra element to be able to style some boxes within the content, normally for highlighting something, or a note. I ckeditor I was using a div and was able to allow it and even able to add a makeDiv button in the tools menu. Switching to CKEditor failed. I could not find out how to add a button for a custom tag. Is there a way? The disadvantage of using a <div> is, that the convenient filtering of divs had to be deactivated. While at it, I was thinking of using some other standard block element, like <section>, instead. (SEO does not matter). And the section got filtered by HTMLpurifier anyway. I found no way in Processwire to train HTMLpurifier to accept <section> as an additional tag. My workaround could be the use of HannaCode. But that is not as convenient.
-
The worst thing at ProcessWire seems to be silently abandoned modules. Is this one abandoned also?
-
I lost 85% of our clients to WordPress due to page builders like Elementor. They aren't concerned with code clutter, page speed and SEO disadvantages. I would love some offerings in that direction, I am aware that this maybe will open Pandora's box. Some praise here for ProcessWire: ProcessWire is unbeatable for websites that almost work as applications. We coded the whole backend office management for our web design firm with ProcessWire including tons of SEO-, Data protection-monitoring- and wp-plugin-updates-montitoring crawlers and checkers: We kind of remote control WordPress from ProcessWire. Clients can log in and see everything they booked at a glance, and can order things directly from ProcessWire, and it is directly connected to the invoicing app. This is a unique system, 10 years of work in it and now makes the entire company manageable by a minimal team, unthinkable without ProcessWire. Thinks I would like in PW4 are things I am used to from WordPress, a full switch to utf8mb4, those needed GDPR utilities out of the box, modules can be "deactivated" leaving the settings intact, and "removed" to make troubleshooting modules compatibility issues much easier. Some image optimization capabilities would be great, the existing 3rd party modules do not meet our expectations yet. Also a good monitoring/curation of outdated/abandoned modules, with supplied warnings, would be great; there are a lot of those old modules, unfortunately.
-
This is really useful. Some ideas which would make it easier to understand for my editors: Would it be possible to output a rounded value? There is no extra benefit from the super accurate floating value, and they are harder to read, especially if the decimal divider is not country styled typical, but US. I would like to be able to set a threshold value in the module and store texts for it, such as "too short", "too long".
-
Here I have it like this: If a field is mandatory, also the intitial value field is also mandatory (not always intended by me). If a field is not mandatory, the initial value field is also not mandatory.
-
ceberlin started following Field Initial Value
-
There is a warning with your composer version when running PHP 8.1: PHP Warning: Uninitialized string offset 0 in .../SymmetricEncryptedText/vendor/composer/ClassLoader.php:375
-
shows still as "version": "1.5.61" after the update?
-
@zoeck yes that is possible. ProcessWire was fiddling with the modules recently. - I drop a note in PW "issues".
-
@horst is this still supported?
-
@horst - The latest ProcessWire DEV 3.0.220 seams to break the WireMailSmtp module (namespace fatal errors) after a module recompiling. Class "ProcessWire\WireMailSmtp" not found I cannot reach the settings any more and probably it does also not send out mails. Isn't it a good idea to drop compatibility to ancient ProcessWire 2 versions and add the ProcessWire namespace in your code, so it does not compile?