-
Posts
11,182 -
Joined
-
Last visited
-
Days Won
372
Everything posted by adrian
-
Hi @teppo - just wondering your thoughts about this: Would it be possible to not show entries when there is no change? I am actually curious what has triggered the entry in the first place - what could cause the entry to be registered if nothing was actually changed? Thanks.
-
Hi everyone, I just committed to new versions. 4.22.23 - updates Tracy core to 2.8.10 4.23.0 - updates Tracy core to 2.9.0 I think everything should be fine in 4.23.0, but the new Tracy core 2.9 major version means that Tracy works without PHP sessions. This means that I was able remove several hacky workarounds to make this module compatible with PW's SessionHandlerDB module. I think I have everything working as expected, but wanted to also release a version with what I assume will be the last version of 2.8.x of the Tracy core. Please let me know if you find any issues with the new 4.23.0 version and if you have any problems that I can't solve quickly, you can always drop back to 4.22.23. Happy holidays!
-
Nice sleuthing @Ralph! As I mentioned, for some reason at the moment my sandbox install doesn't seem to want to work with pageFilesSecure so it's not easy for me to test, but I am wondering if it's a combo of that together with the field level access control and the fact that this module is adding the video thumb to the image field via the API. I wonder if you might be able to try adding an image to that field via the API, possibly via the Tracy console panel. If that doesn't work, then I think it might be a PW core issue, but if it does work, then I'll have to dig deeper and see if I can reproduce here.
-
Thank you so much for the quick response - working perfectly!
-
Hi @Robin S - just wondering if it would be difficult to make this appear in the Profields Table field for CkEditor Textareas? I know they use CkEditor's inline mode so not sure if that is a problem or not. Thanks.
-
@stanoliver - I'll let @kongondo discuss his Matrix fieldtype more - I do use it and like most things, it has its pros and cons. It looks to me like the Profields Table field module might be best suited to your needs.
-
Select Once Per Table: store extra information for selected pages
adrian replied to Robin S's topic in Modules/Plugins
Fabulous idea, as always Robin!- 15 replies
-
- 1
-
-
- module
- extra information
-
(and 3 more)
Tagged with:
-
https://github.com/wanze/ProcessGoogleAnalytics
-
Thanks @Sebi - things are working for me properly now on PHP8. No rush on this, but I would like to raise @kongondo's suggestion of using PW's new URL path hooks (https://processwire.com/blog/posts/pw-3.0.173/#introducing-url-path-hooks) instead of the PageNotFound hook. I am not sure how much work it would be to change to this approach, but when I noticed the PHP8 issues in this module, I actually ended up creating my API via URL path hooks and it was really easy to implement with very little code. Obviously your module is going to be awesome for handling multiple APIs, multiple api keys, revoking access, etc, etc, so I will probably switch to it now, but it would be nice to not rely on that PageNotFound hook, because a lot of modules are using that and as well as feeling hacky, I feel like there are bound to be conflicts at some point with different modules and the order in which they are executed.
-
It shouldn't be a problem, although I haven't really ever used that feature of the core. I just tried testing it and I don't get any errors, but for some reason the dash before the files folder (which is added when I create a new page), is removed as soon as I publish it, so I feel like there is a bug somewhere. And that is not even with any engagement of this module. Maybe something with the pageFileSecure broke in recent PW versions? PS - does Tracy give a stack trace of the error?
-
I don't think that is the same issue - the warning is now about fopen on the file in the PW assets. I think the other one was on YT site. I see that you have pageFileSecure on - do you think that is the only difference between this and other sites where you have it working?
-
-
Ok, so I am now testing on a different server with PHP7 and I can get the X-Api-Key header to work, but I really do need this working on PHP8. The next problem (with PHP 7) is that if I try the /test endpoint (as included in the default Routes.php file), I get: "error": "Method not allowed" Same goes for /users Does anyone know what the problem with these two endpoints might be? Thanks! Solved the method issue - it was because the default test endpoint was set to GET and I was working with POST. Now it seems to be just the PHP 8 with the API Key that needs solving.
-
I am starting to think this is a PHP8 issue: https://github.com/Sebiworld/AppApi/issues/28#issuecomment-989300577 Is anyone using this successfully with v8?
-
I must be having a bad day because I keep getting "Apikey not valid" when testing via Postman or https://reqbin.com/ If I force the isApikeyValid() method to return true, then I get "Call to a member function getAuthtype() on bool" which if I look at, means that $this->application is returning a boolean. Has anyone else had to troubleshoot through issues like this? Thanks for any tips on getting started!
-
I am sure an action could be built for this, but you might instead want to take a look at this fieldtype - I have used it in the past and it works really well.
-
Uncaught TypeError: window.Tracy.Debug.bar is undefined
adrian replied to Ivan Gretsky's topic in Tracy Debugger
Hi @Ivan Gretsky - thanks for the file. Unfortunately I can't reproduce yet. I thought perhaps you might have been bootstrapping PW into the action or something like that. Seeing Tracy loaded twice like that is definitely weird. Do you only see that with this action, or any Admin Action? Does it show up when loading the action, or only after running it? -
Uncaught TypeError: window.Tracy.Debug.bar is undefined
adrian replied to Ivan Gretsky's topic in Tracy Debugger
Can you share the Admin Action that is causing this? -
@Macrura - just came across an issue. I am importing content which includes images with cache busting parameters, eg: <img src="https://oldsite.com/image.jpg?1631735176" /> We need to remove that ?1631735176 for things to work. A simple solution is: $html = $page->$ta_field; $html = preg_replace('/(.*)(.jpe?g|.gif|.png)(\?[\d]+)(.*)/', '$1$2$4', $html); Thanks!
-
It looks like has_parent now supports multiple pages and I think it has served all my needs around this. What can't it do in your use case?
-
Thanks @monollonom - the new version looks good to me.
-
Thanks for sorting out the conflicts. Actually thinking about the ML stuff - maybe my proposed solution isn't the best - sites may still be set up with /en/ /es/ etc as a way of having different language URLs for each page without needing to have LanguageSupportPageNames installed. Maybe you could just add an option to enable or disable the select dropdown instead?
-
This should take care of the language change I am suggesting: if($this->wire('modules')->isInstalled('LanguageSupportPageNames')) { $out .= $this->renderSelectOptions($options); }
-
Something else to be aware of - getting errors when using this with Ryan's TOTP module. https://github.com/ryancramerdesign/TfaTotp/issues/3
-
Thanks @monollonom for the new version. One thing I'd like to see is removal of the language dropdown unless "Languages Support - Page Names" is installed. In my case I am using ML, but I don't have language specific URLs, so that dropdown is just confusing. What do you think? Thanks.