Jump to content

adrian

PW-Moderators
  • Content Count

    9,489
  • Joined

  • Last visited

  • Days Won

    314

Posts posted by adrian


  1. I think it might be because you are extending InputfieldPageTable rather than Wire or WireData. Sorry, I have to run now, but maybe that will get you on the right track. Usually with a custom inputfield you just need a css file named to match the class of the module and it will be automatically loaded, eg InputfieldPageTableExtendedGrid.css

    • Like 2

  2. Try this:

    $this->wire()->addHook('ProcessWire::ready', function($event) {
        $event->page->addHookAfter('render', function($event) {
            $value  = $event->return; // Return Content
            $style = "<style type='text/css'>". $this->pages->get((int) wire('input')->get('id'))->style ."</style>"; // Add Style inside bottom head
            $event->return = str_replace("</head>", "\n\t$style</head>", $value); // Return All Changes
        });
    });

    inside your module's init() method.

    • Like 2

  3. Just now, gornycreative said:

    Are you running this on 161 or 148?

    Local dev is 161 (actually just updated to today's commits). At the moment, the live sites vary between 156 and 160.


  4. What I can't fathom is that you uninstalled Tracy and it's still a problem. It suggests to me that it's not Tracy related.

    I am running the latest version on several different sites and different servers without any problems.

    2 hours ago, gornycreative said:

    I was in the process of revamping the site from delayed output to markup regions

    This sounds like the likely issue - I know you said you put the old versions of the templates back and they are still broken, but with Tracy uninstalled and its folder removed, it can't be impacting things anymore.

    Any chance you accidentally messed with the htaccess file?


  5. Hi @gornycreative - sorry you're have a rough time with this. Did you properly uninstall 4.21.19, or did you just remove the files?

    I know you said you aren't getting any errors, but are you talking about PHP errors only? Does the browser dev console show any JS errors? What about errors in the apache logs?

    Have you done a modules refresh and clear session & cookies from the Processwire Info panel in Tracy?

    Do the sites work in a different browser / incognito window?


  6. Hi @MoritzLost - what version of Tracy are you running? Trying to figure out what is on line 409 as highlighted in the call stack. It doesn't seem to me like it's the latest version, but I could be wrong.

    What changed that started the error? Did you update something?

     

    • Like 1

  7. Hi @maddmac - no, there isn't a lost password option. I'm not sure what it would take to implement the PW core version into this. I am super busy with client work for the next month so can't really tackle this at the moment I'm afraid. If you feel like having a go, I am happy for PRs 🙂


  8. 1 minute ago, Craig said:

    is the problem you had with PW Upgrades, or something I've done (or not done!) with the LoginPersist module?

    Honestly not sure - maybe the permissions on that file got messed up? I expect it was something locally specific.


  9. 4 minutes ago, teppo said:

    Hey @adrian! I'm pretty sure that those issues were already fixed. Could you check that you've got 2.1.0 installed?

    Thanks @teppo - I actually noticed there was a new version the other day and used the PW Upgrades module to update, but for some reason it's not actually updating the module (I just tried again) - I assumed it had worked. 

    Anyway, I manually updated to 2.1.0 and you're correct of course - it seems like they have been fixed.

    • Like 2

  10. Actually, I think it needs to be:

    $this->destroyLogins($this->wire('user')->id);

    because I am getting this error:

    HP Notice: Object of class ProcessWire\User could not be converted to int in /var/www/html/site/assets/cache/FileCompiler/site/modules/LoginPersist/LoginPersist.module:400

×
×
  • Create New...