-
Posts
1,514 -
Joined
-
Last visited
-
Days Won
45
Everything posted by gebeer
-
Sorry, I have no idea what else could cause this. Maybe someone else can jump in?
-
Then try this: RewriteBase / If it is not working, try this: RewriteBase /processwire-master/
-
Did you set the RewriteBase in the .htaccess?
-
You can use a hook in ready.php to delete cache on save of pages // delete caches when pages are created, saved or moved around wire()->addHookAfter('Pages::save', function(Hookevent $event) { $page = $event->arguments(0); // do nothing on admin pages if($page->template == 'admin') return; // delete cache for templates if($page->template == 'where-to-go-detail' || $page->template == 'our-guides-detail') { $this->cache->delete('wtg'); // here you could add logic to rebuild the cache } });
-
what does this say when you put it before everything else? var_dump($modules->isInstalled('FormTemplateProcessor'));
-
don't you get anything from the var_dump?
-
I just set this up on my dev install 3.0.96 with your code from above and it works. Only thing I changed is $form->parent... So it is hard to say what goes wrong on your end without seeing the complete template code. EDIT: what does this say? $form = $modules->get('FormTemplateProcessor'); var_dump($form); And then right before your echo? var_dump($form); echo $form->render();
-
and this is definitely wrong $form->parent = $page('template=book-now'); // wrong $form->parent = $pages->get('template=book-now'); // should work
-
what happens if you comment out the first call to $form->render?
-
The error message you posted does not fit with the code. You got that error when you tried it with render(array('name','email','body',)) What error do you get with the actual code that you posted? EDIT: Sorry for that
-
SOLVED: LOGIN/REGISTER/PROFILE - LoginRegister - Show RegisterForm
gebeer replied to DV-JF's topic in General Support
@flydev I was a minute faster there -
SOLVED: LOGIN/REGISTER/PROFILE - LoginRegister - Show RegisterForm
gebeer replied to DV-JF's topic in General Support
The module looks for a GET parameter register. When this is set to 1, it renders the login form. So what you could do is in the temnplate where you render the login form // set GET parameter register to 1 $input->get->register = 1; // render the form $content = $modules->get('LoginRegister')->execute(); I just tried it and it seems to work. -
Have you tried to do $page->of(false) before you add the image? $page->of(false); $page->filepreviews->add($img); $success = $page->save(); EDIT: this would explain why the first did not get added but the follwing did. Because of() was only set to false after adding the first image
-
Modyfikacja por roku i odziezy najwyzszej jakosci
gebeer replied to james smith's topic in General Support
If your PW version is >=3.0.95 you could try the soundex search code in this thread. Not sure if the soundex algorithm can be of help in your case but maybe worth a try. Implementation is quite simple. -
To send emails from the template you would use WireMail, accessible in the API through $mail To get values for your image and other fields, just use regular $page->image, $page->title etc. The hardest part will be the cross-client responsive Email template. This is not a trivial thing to do. Some resources: http://leemunroe.github.io/responsive-html-email-template/email.html http://tedgoas.github.io/Cerberus/ If you send emails from ProcessWire and want to send them in plain text and in HTML, you typically construct the HTML email first and then convert that to a plain text version with something like $emailMessageAdminHtml = "<h1>Some HTML</h1><p>with paragraph</p>"; $emailMessage = str_replace( "<br>", "\n", strip_tags($emailMessageAdminHtml, '<br>') ); // construct email $mail->to($recipient); $mail->from($sender); $mail->subject($subject); $mail->body($emailMessage); $mail->bodyHTML('<html><body>' . $emailMessageAdminHtml . '</body></html>'); // send $mail->send();
-
Check out https://github.com/mrclay/minify But I don't know if it is worth the effort. For in the backend I wouldn't mind having multiple files loaded even if some of them have only one line.
-
Have you tried to check the "Add DROP TABLE / VIEW / PROCEDURE..." Option when exporting from phpMyAdmin? EDIT: It is in your screenshot above under "Object Creation Options"
-
You might want to have a look at my REST API tutorial. It implements basic HTML authentication which is a standard that is quite secure when used over SSL. If you use that appoach, then you need to to send base64-encoded credentials (username:password) when your App authenticates with PW. Then on the PW side you need to decode those into username and password. See how this is done in the Rest Helper php Then do the login attempt with $session->login('username', 'password'); to see whether the credentials are valid.
-
Yes, this would be the correct way to implement. You can find some responsive site profiles in this thread: https://processwire.com/talk/forum/12-themes-and-profiles/ Here's a BS4 site profile in the module's directory: https://modules.processwire.com/modules/process-wire-bootstrap4/ You can have a look at some of those profiles to get a better idea about implementation. The beautiful thing about ProcessWire is that there is no single correct way to do things. It leaves structural decisions up to the developer.
-
@bernhard Understood, never mind. Its only that I get requests from my clients to implement recaptcha. Otherwise I would stick to honeypot as well. Also, on one of the sites where recaptcha V2 is implemented, I still get some Spam. Not more or fewer than on sites with honeypot. But try to explain this to clients who want something specific because they heard the buzz word recaptcha...
-
@bernhard this looks very promising, thank you for sharing! It would be great if you could add Recaptcha V2 support. I was once struggling on getting it to work with a Nette Form implementation for a project. Here is the most up to date and seemingly well maintained Nette extension I could find: https://packagist.org/packages/contributte/reCAPTCHA
-
I thin what you are looking for is the "Custom PHP code" in the Input tab of the field cnfiguration screen for your programs_list field In my case the field name is "myplaces" Now Go and insert this hook into site/ready.php $wire->addHookAfter('InputfieldPage::getSelectablePages', function($event) { if($event->object->hasField == 'programs_list') { $page = $event->arguments('page'); $event->return = $event->pages->find("template=yourTemplateForProgramPages, program_id={$page->legacy_id}); } }); This gets the legazy_id of the page that you are currently editing and then finds all program pages with that id in field program_id.
-
@flydev this is what I call a thorough explanation Thank you for taking the time and sharing your knowledge!
-
Today I got the same error. Only on my local dev environment. Live site is fine. PW 2.7.2. In my case it is related to SessionHandlerDB module. When I uninstall it, the error is gone. The request http://utg.local/utgcontrol/page/list/?id=1&render=JSON&start=0&lang=0&open=undefined&mode=actions returns {"page":{"id":1,"label":"<span class='label_title'>Tao Yoga<\/span>","status":9,"numChildren":25,"path":"\/","template":"home","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1"}]},"children":[{"id":1391,"label":"<span class='label_title'>homepage-teaser<\/span>","status":1025,"numChildren":6,"path":"\/homepage-teaser\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1391"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/homepage-teaser\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1391"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1391","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1391","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1391","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1391","ajax":true}}}]},{"id":1392,"label":"<span class='label_title'>Philosophie<\/span>","status":1,"numChildren":10,"path":"\/philosophie\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1392"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/philosophie\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1392"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1392","ajax":true},"hide":{"cn":"Hide","name":"Verstecken","url":"\/utgcontrol\/page\/?action=hide&id=1392","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1392","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1392","ajax":true}}}]},{"id":1393,"label":"<span class='label_title'>Mantak Chia<\/span>","status":1,"numChildren":2,"path":"\/mantak-chia\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1393"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/mantak-chia\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1393"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1393","ajax":true},"hide":{"cn":"Hide","name":"Verstecken","url":"\/utgcontrol\/page\/?action=hide&id=1393","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1393","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1393","ajax":true}}}]},{"id":1394,"label":"<span class='label_title'>Universal HEALING TAO System<\/span>","status":1,"numChildren":9,"path":"\/universal-tao\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1394"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/universal-tao\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1394"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1394","ajax":true},"hide":{"cn":"Hide","name":"Verstecken","url":"\/utgcontrol\/page\/?action=hide&id=1394","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1394","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1394","ajax":true}}}]},{"id":1029,"label":"<span class='label_title'>Lehrer<\/span>","status":1,"numChildren":51,"path":"\/lehrer\/","template":"members","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1029"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/lehrer\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1029"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1029","ajax":true},"hide":{"cn":"Hide","name":"Verstecken","url":"\/utgcontrol\/page\/?action=hide&id=1029","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1029","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1029","ajax":true}}}]},{"id":1395,"label":"<span class='label_title'>Workshops<\/span>","status":1,"numChildren":430,"path":"\/workshops\/","template":"events","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1395"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/workshops\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1395"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1395","ajax":true},"hide":{"cn":"Hide","name":"Verstecken","url":"\/utgcontrol\/page\/?action=hide&id=1395","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1395","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1395","ajax":true}}}]},{"id":1403,"label":"<span class='label_title'>Ausbildung<\/span>","status":1,"numChildren":3,"path":"\/ausbildung\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1403"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/ausbildung\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1403"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1403","ajax":true},"hide":{"cn":"Hide","name":"Verstecken","url":"\/utgcontrol\/page\/?action=hide&id=1403","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1403","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1403","ajax":true}}}]},{"id":1396,"label":"<span class='label_title'>Links<\/span>","status":1,"numChildren":11,"path":"\/links\/","template":"links","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1396"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/links\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1396"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1396","ajax":true},"hide":{"cn":"Hide","name":"Verstecken","url":"\/utgcontrol\/page\/?action=hide&id=1396","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1396","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1396","ajax":true}}}]},{"id":1399,"label":"<span class='label_title'>Suche<\/span>","status":1,"numChildren":0,"path":"\/suche\/","template":"search-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1399"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/suche\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1399"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1399","ajax":true},"hide":{"cn":"Hide","name":"Verstecken","url":"\/utgcontrol\/page\/?action=hide&id=1399","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1399","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1399","ajax":true}}}]},{"id":1544,"label":"<span class='label_title'>Kontakt<\/span>","status":1025,"numChildren":0,"path":"\/kontakt\/","template":"contact","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1544"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/kontakt\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1544"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1544","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1544","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1544","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1544","ajax":true}}}]},{"id":1397,"label":"<span class='label_title'>Impressum<\/span>","status":1025,"numChildren":0,"path":"\/impressum\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1397"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/impressum\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1397"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1397","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1397","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1397","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1397","ajax":true}}}]},{"id":1398,"label":"<span class='label_title'>Taoismus<\/span>","status":1025,"numChildren":6,"path":"\/taoismus\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1398"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/taoismus\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1398"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1398","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1398","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1398","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1398","ajax":true}}}]},{"id":1401,"label":"<span class='label_title'>Pressespiegel<\/span>","status":1025,"numChildren":2,"path":"\/pressespiegel\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1401"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/pressespiegel\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1401"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1401","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1401","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1401","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1401","ajax":true}}}]},{"id":1402,"label":"<span class='label_title'>Lesetipps<\/span>","status":1025,"numChildren":1,"path":"\/lesetipps\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1402"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/lesetipps\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1402"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1402","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1402","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1402","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1402","ajax":true}}}]},{"id":1781,"label":"<span class='label_title'>Orte<\/span>","status":1025,"numChildren":46,"path":"\/orte\/","template":"places","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1781"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1781"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1781","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1781","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1781","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1781","ajax":true}}}]},{"id":1035,"label":"<span class='label_title'>Helpers<\/span>","status":1025,"numChildren":5,"path":"\/helpers\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1035"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/helpers\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1035"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1035","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1035","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1035","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1035","ajax":true}}}]},{"id":1390,"label":"<span class='label_title'>Module<\/span>","status":1025,"numChildren":8,"path":"\/modules\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1390"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/modules\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1390"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1390","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1390","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1390","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1390","ajax":true}}}]},{"id":1490,"label":"<span class='label_title'>Kontrollzentrum<\/span><i class='PageListStatusIcon fa fa-fw fa-key'><\/i>","status":1025,"numChildren":6,"path":"\/dashboard\/","template":"dashboard","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1490"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/dashboard\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1490"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1490","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1490","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1490","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1490","ajax":true}}}],"addClass":"PageListAccessOff"},{"id":1026,"label":"<span class='label_title'>login<\/span>","status":1025,"numChildren":0,"path":"\/login\/","template":"login","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1026"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/login\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1026"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1026","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1026","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1026","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1026","ajax":true}}}]},{"id":1027,"label":"<span class='label_title'>reset-pass<\/span>","status":1025,"numChildren":0,"path":"\/reset-pass\/","template":"reset-pass","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1027"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/reset-pass\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1027"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1027","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1027","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1027","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1027","ajax":true}}}]},{"id":1400,"label":"<span class='label_title'>import<\/span>","status":3073,"numChildren":0,"path":"\/import\/","template":"import","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1400"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/import\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1400"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"pub":{"cn":"Publish","name":"Ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=pub&id=1400","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1400","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1400","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1400","ajax":true}}}]},{"id":1431,"label":"<span class='label_title'>Nutzungsbedingungen Newsletter<\/span>","status":1025,"numChildren":0,"path":"\/nutzungsbedingungen-newsletter\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=1431"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/nutzungsbedingungen-newsletter\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=1431"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=1431","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=1431","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=1431","ajax":true},"trash":{"cn":"Trash","name":"<i class='fa fa-trash-o'><\/i> Papierkorb","url":"\/utgcontrol\/page\/?action=trash&id=1431","ajax":true}}}]},{"id":27,"label":"404 Seite nicht gefunden","status":1035,"numChildren":0,"path":"\/http404\/","template":"basic-page","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=27"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/http404\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=27"},{"cn":"Move","name":"Bewegen","url":"#"},{"cn":"Extras","name":"<i class='fa fa-angle-right'><\/i>","url":"#","extras":{"unpub":{"cn":"Unpublish","name":"Nicht ver\u00f6ffentlichen","url":"\/utgcontrol\/page\/?action=unpub&id=27","ajax":true},"unhide":{"cn":"Unhide","name":"Nicht verstecken","url":"\/utgcontrol\/page\/?action=unhide&id=27","ajax":true},"lock":{"cn":"Lock","name":"Sperren","url":"\/utgcontrol\/page\/?action=lock&id=27","ajax":true}}}],"type":"System"},{"id":2,"label":"<span class='label_title'>Admin<\/span><i class='PageListStatusIcon fa fa-fw fa-key'><\/i>","status":1035,"numChildren":7,"path":"\/utgcontrol\/","template":"admin","actions":[{"cn":"Edit","name":"Bearbeiten","url":"\/utgcontrol\/page\/edit\/?id=2"},{"cn":"View","name":"Anzeigen","url":"http:\/\/utg.local\/utgcontrol\/"},{"cn":"New","name":"Neu","url":"\/utgcontrol\/page\/add\/?parent_id=2"},{"cn":"Move","name":"Bewegen","url":"#"}],"addClass":"PageListAccessOff","type":"System"},{"id":7,"label":"Papierkorb<i class='PageListStatusIcon fa fa-fw fa-trash-o'><\/i>","status":1039,"numChildren":6,"path":"\/trash\/","template":"admin","actions":[{"cn":"Empty","name":"Leeren","url":"\/utgcontrol\/page\/trash\/"}],"addClass":"PageListAccessOff","type":"System","note":"< Papierkorb offen: Seiten hierher verschieben um sie wegzuwerfen"}],"start":0,"limit":50} Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'data' at row 1' in /var/www/utg.local/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module:109 Stack trace: #0 /var/www/utg.local/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module(109): PDOStatement->execute() #1 [internal function]: SessionHandlerDB->write('sj6ovgbs6l6btf4...', 'Session|a:13:{s...') #2 [internal function]: session_write_close() #3 {main} thrown in /var/www/utg.local/wire/modules/Session/SessionHandlerDB/SessionHandlerDB.module on line 109 So it seems DB related in this case. DB -Client Version: libmysql - mysqlnd 5.0.12-dev - 20150407. Guess I should update my local dev MySQL version... EDIT: DB Version actually is Server-Version: 5.7.21 - MySQL Community Server (GPL) Deleting all entries in seesion table doesn't help
-
Look at 3.2 in the first post, I use basic HTTP authentication which, in combination with SSL, was save enough for that application. If you need more sophisticated auth scenarios, have a look at JSON Web Tokens. @thomasaull implements it in his REST-Api site profile.