Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Sevarf2 last won the day on December 10 2013

Sevarf2 had the most liked content!

Community Reputation

118 Excellent

About Sevarf2

  • Rank
    Hero Member
  • Birthday 02/02/1981

Profile Information

  • Gender
  • Location
    Italy / Romania

Contact Methods

  • Skype

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. 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
  2. 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' ] ]); });
  3. 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.
  4. Awesome module, I'm testing it right away for a small project I'm working on, keep rocking!
  5. 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.
  6. 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
  7. 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?
  8. Having the same exact problem with users not superuser, can't login via API anymore because of this isDefault().... 😞
  9. 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); }
  10. meanwhile I contacted the sys admin and it looks like there is some server misconfiguration we can't fix yet, when I upload the zip I found out that I cannot rename it, probably that's why the installer is stuck...but I was able to install a fresh PW..btw right now i can't show you the steps since we deleted everything and making tests
  11. Hello, thanks @Autofahrn that solved the problem but I still have an issue and I think it depends on the fact I'm running on a windows server with IIS (I reverted to php 7.3.13). While a fresh install of the latest PW is going well, the install from duplicator doesn't, I'm stuck in the extraction of the package, it looks like the $_SESSION['package'] returns null at this point but right after the extraction the session was ok, in fact I saw the name of the package in the previous step. Any thoughts? $this->package = $_SESSION['package']; if(is_null($this->package)) { $this->err("Something went wrong in the installer."); //ATO: Typo return false; }
  12. Hello, I have and issue with php 7.4 about a deprecated function get_magic_quotes_gpc() used inside the installer.php...any quick fix ? Thanks in advance
  13. hey @bernhard is this module still usable with latest PW? thanks
  14. I'd like to add extra markup to a specific inputfield text in the admin using a module, I tried an hook like this but pw says the method doesn't exist $this->addHookBefore('Inputfield::render', $this, "addMarkup"); protected function addMarkup($event){ $Inputfield = $event->object; if($Inputfield->attr('name') == "myfieldname"){ $Inputfield->setMarkup([ 'item_content' => "my markup" ]); } }
  • Create New...