Jump to content

Frank Vèssia

Members
  • Posts

    584
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Frank Vèssia

  1. Hello, I'm having a strange issue, the module works fine in production mode, but when I enable the $config->debug = true; the module cannot compile my files and output this error <b>Warning</b>: A non-numeric value encountered in <b>/site/assets/cache/FileCompiler/site/modules/AllInOneMinify/AllInOneMinify.module</b> on line <b>713</b><br />/site/assets/aiom/css_b636f2192ceb48c592835de3c2d9c3b9_dev.css?no-cache=1601104220"> Any idea how to solve this? Thanks
  2. Unfortunately (after a quick review) I can't use the 2.0 version of Template Engine Factory because I can't install other dependencies (twig) so I have to stick with the 1.1.3
  3. mmhhh never knew there was a 2.0 version...I was always relying on the automatic upgrade module and the 1.3 was the latest available...I'm gonna try it, maybe the issue will solve itself with the newer version, thanks
  4. In my site I use a templating system Template Engine Factory and I'm having a small issue when trying to visualize the preview revision inside the History tab, I get this error, the way the template engine passes variables between the controller and the view is not recognized ($view->set('myvar',$myvar)), is something fixable? Thanks
  5. Hi, did you solved this issue? I have the same problem and even removing the segmentation from home page the issue persists.
  6. The PW admin form is made for input data not for displaying it, you have to create your own dashboard if you want, take a look at https://modules.processwire.com/modules/dashboard/
  7. On the Input tab of the field, you can set the visiblity, open when populated, closed when blank + blocked but the question is how you insert the value if the field is not editable?
  8. it doesn't work for the same reason $config doesn't work, use wire('page') inside functions
  9. I'm sorry but this is going outside this forum scope, I suggest you study php, these are basic issues.
  10. you are sending 'search' which is null, you have to send q
  11. I got this error during install (pw 3.0.159 dev) Edit: apparently I solved updating to the latest dev version 3.0.160
  12. Hi, it's ok, it was just the fact that github was down and I didn't notice it, so I thought you kind removed the module for some reason / imminent update, sorry ?
  13. Ops, didn't check github itself...thanks ?
  14. Any update? I can't download the module, even from github, it's no longer available?
  15. you can try to create the child page only after the parent is saved, like so: // create parent $p = new Page(); $p->template = 'basic-page'; $p->parent = $pages->get(1234); $p->title = 'Parent Page'; if($p->save()){ // create child $c = new Page(); $c->template = 'child-template'; $c->parent = $p;// new parent above $c->title = 'Child Page'; $c->save(); }
  16. hey @horst it's possible to override the smtp settings and use values on the fly while creating a wiremail instance? I have 3 different emails I need to use in my site. Thanks
  17. It's just a simple page creation $mainNode = $pages->get(1030); $today = date("Ymd"); $checkToday = $pages->get("name=$today"); if( !$checkToday->id ){ $td = new Page(); $td->parent = $mainNode; $td->template = $templates->get("day"); $td->title = $today; $td->save(); } and in my admin I call the panel which is that code It's a fresh PW install 3.0.148 wire()->addHookAfter('Dashboard::getPanels', function ($event) { $panels = $event->return; $panels->add([ 'panel' => 'template', 'title' => 'Excel import', 'size' => 'full', 'icon' => 'upload', 'data' => [ 'template' => 'dashboard/dashb_import.php' ] ]); });
  18. Hi @d'Hinnisdaël I'm using the module in all my projects now, very well done. Just one issue or something I missed to configure, when I'm using the template panel in which I need to create some pages based on buttons action I got PW fatar error class Page not found.
  19. Awesome module, I'm testing it right away for a small project I'm working on, keep rocking!
  20. At this point I think that something inside the DB is broken or so because the code is fine and always worked even in other applications, yes probably is something related with the roles because it happens only to non admin users and it happens also on logout where there is no login code involved. It is very strange, I also made a test displaying the current user language just before the logout with any issue and during logout I got the error $language undefined for the current user.... I like to be precise on what's happening by telling the users where is the problem instead of generic login error messages.
  21. I just tried with no luck, it seemed a reasonable solution ? get the same error when I perform session->logout()..but I don't understand, the user has the default language set...how can be null and why only non admin user? Good question lol
  22. after few more debugs I found out the issue Error: Call to a member function isDefault() on null in /home/iltuopre/public_html/wire/core/PagesLoaderCache.php:237 Any idea what is it?
  23. Having the same exact problem with users not superuser, can't login via API anymore because of this isDefault().... ?
  24. Hello, my login code is acting very strange, when a superuser is trying to login is working fine, with other roles the server crashes and I get server error 500. I tried to debug but I cannot find any explicable reason for this <?php if($input->post->email){ $email = $sanitizer->email($input->post->email); $pass = $sanitizer->text($input->post->password); $response = array(); $errors = ""; if($email == ''){ $response['type'] = "error"; $response['msg'] = "Email non valida"; echo json_encode($response); exit; } if( $pass == '' ){ $response['type'] = "error"; $response['msg'] = "Password non valida"; echo json_encode($response); exit; } $checkUser = $users->get("email=$email"); if($checkUser->id){ try { $uname = $checkUser->name; $user = $session->login($uname,$pass); if($user && $user->id && $user->id != 40){ $response['type'] = "success"; $response['msg'] = "Utente loggato"; }else{ $response['type'] = "error"; $response['msg'] = 'Password non valida. Riprova'; } } catch(WireException $e){ // in case of multiple false login (throttle login) $errors .= $e->getMessage(); } }else{ $response['type'] = "error"; $response['msg'] = 'Email non trovata.'; } if($errors != ''){ $response['type'] = "error"; $response['msg'] = $errors; } echo json_encode($response); }
×
×
  • Create New...