-
Posts
10,902 -
Joined
-
Last visited
-
Days Won
349
Everything posted by adrian
-
Cordova/Phonegap are for building hybrid apps, but there are several "native" cordova plugins for things like access to the camera and various sensors, and in that case, also for displaying notifications. Here's the list of cordova plugins you can use: https://cordova.apache.org/plugins/
- 35 replies
-
- 2
-
Uncaught ArgumentCountError: Too few arguments to function
adrian replied to Peter Knight's topic in General Support
As @Zeka said - it expects a minimum of two arguments, but just to clarify, this is not a PHP 7 issue. -
Not sure if this does what you want: https://ionicframework.com/docs/native/push/
- 35 replies
-
- 1
-
How to output wire message after running a hook problem
adrian replied to Juergen's topic in API & Templates
Just curious - I would have thought that Tracy would report the exception most likely on the bluescreen page and if not, I think the PW logs icon would turn red because it should be logged there. Did neither of those happen? Exception: Can’t save page 1: /: Call $page->of(false); before getting/setting values that will be modified and saved. -
It depends on the version of PW. Take a look at my logic here: https://github.com/adrianbj/TracyDebugger/blob/805e09c8641a438deeb1b7a7983bc59a148e43a1/panels/DebugModePanel.php#L221-L224
-
Migrate Processwire with Plugin but Backend does not work as expected
adrian replied to Maxplex's topic in General Support
Looking at the line where that addBodyClass error is coming from: $this->wire('adminTheme')->addBodyClass('LanguageTabsJqueryUI'); we can see it's related to the theme issues you are having. At this point I would copy across all the files from the wire folder again with a fresh set from Github. If that doesn't work on it's own, I'd be calling: http://mysite.com/processwire/module/?reset=1 If that doesn't work, empt the assets/cache folder. Then try the cache db table. -
You just need to make use of the maxDepth and maxLength options when making the d() call. You can read the docs here: https://adrianbj.github.io/TracyDebugger Also note that the Debug Mode panel > Selector Queries section now shows the SQL query for all selectors used to generate the current page.
-
Migrate Processwire with Plugin but Backend does not work as expected
adrian replied to Maxplex's topic in General Support
Because turning it on might display the real reason for the internal server error -
Outputformatting is off when you bootstrap, so the maxFiles setting is not respected. You can either turn it on ->of(true) or you can get the ->first() image.
- 1 reply
-
- 1
-
- bootstrap processwire
- include processwire
-
(and 1 more)
Tagged with:
-
Migrate Processwire with Plugin but Backend does not work as expected
adrian replied to Maxplex's topic in General Support
Do you have debug mode turned on in config.php? -
Yes (https://github.com/renganatha10/whatspp-PWA) Yes (https://www.progressivewebapproom.com/) I don't know what a premium app is I think this is a good read: https://blog.ionicframework.com/what-is-a-progressive-web-app/ You could even build these things in "hybrid" apps - Cordova plugins give access to camera, mic, etc and there are lots of JS game building libraries out there. I think browsers and JS are getting so powerful now that you can build anything without going "native".
- 35 replies
-
- 6
-
Thanks for checking - it's definitely an issue here.
-
I haven't used their new PWA toolkit, but I have used PW as a backend for an Ionic app before. Might be worth taking a look: https://blog.ionicframework.com/announcing-the-ionic-pwa-toolkit-beta/
-
Sounds awesome - thanks for the heads up. I wonder how hard it will be to implement and whether it really needs to be implemented in the Tracy core or not?
-
When you say "encapsulation headaches" are you talking mostly about css inheritance? Sorry, I haven't had a good read of that link yet
-
The issue you are seeing is actually the missing pipe (|) between the name and the format. Try this: /*Hungary*/ hungaryAreaCodeOnly | {([phoneAreaCode])}-{[phoneNumber,0,3]}-{[phoneNumber,3,4]}
-
Another useful update - the File Editor panel now remembers and reopens the folder tree to the currently open file and highlights that file. Should make navigation to related files much simpler after save when the page reloads.
-
kai.pw is a live domain: https://www.whois.com/whois/kai.pw Looks like it must be being pointed to a Github pages site that isn't up yet. You might be able to edit the hosts file on your local machine and make it go to 127.0.0.1, but might be easiest to just go with a .test or .local TLD for local dev. In case you don't know, .dev is no longer a good idea: https://iyware.com/dont-use-dev-for-development/
-
Interesting - the key thing was incorrect line numbers on errors when running code in Console/Snippet Runner. And with Captain Hook panel it was a lack of grouping of file under the Site Modules headings. Maybe PHP on different version of Windows IIS handle forward / back slashes differently. All the issues came down to using strpos() to see if the path to a file contained a certain subpath, eg /site/modules - the trouble being that on Windows, I had to look for \site\modules instead. I fixed things with a combination of DIRECTORY_SEPARATOR and in some cases converting the paths to all forward slashes before doing checks, displaying links etc. Thanks for keeping an eye out for any persistent / new issues.
-
I went to test on a ML site, but I don't actually even see the button and I do get these JS errors. This is my settings: Let me know if there is anything I can do to debug.
-
New version just committed that is a must for Windows users - a huge thanks to @matjazp for the report and also local access to his dev machine so I could find and fix all the issues. You Windows guys need to speak up when you see issues - the Console, Snippet Runner, and Captain Hook panels in particular were a mess Please let me know if you see anything I have missed. Other changes include: Add custom register_shutdown_function() for Console and Snippet Runner panels - especially important for PHP 5.x. PHP 7 handles most errors as non-fatal. Fix AJAX panel updating for Console/Snippet Runner when SessionHandlerDB not installed. A few styling fixes.
-
Yeah, understood - I changed the names of the settings fields to be more semantically correct. I shouldn't have changed them once I pushed v2.x to master, but what's done is done now I think and it's still early days for this new version so I don't think it will affect too many people.
-
I think what you are looking for is: foreach($page->tags as $tag) { echo "<li><a href='{$tag->url}'>{$tag->title}</a></li>"; } I assume when you say "go to specific news" that means a page with a single news item.
-
Yes, the Process module under Setup > Duplicator is not necessary to run the backups. I guess the only reason that the interface in the that process module is not in the config settings for the main module is so that you can give access permission to use it to non-superusers.
-
@flydev - I think I must be missing something, but I am still confused about the storage of backups on Google Drive. My local backups are keeping the last 10 and removing the oldest once to enable adding of the new one. The problem is that on Google Drive it only stores 10, and won't add anymore unless I manually delete one so that there are only 9 stored before the next backup runs. Maybe I am supposed to use the "Remove backup packages older than" option, but I am not really sure how to make that work as I want. I would like to keep daily backups for 10 days so that there are always 10 stored backups. The options to remove are minute, day, week, month, year, but none of these would delete on the 10th day - does that make sense? The other thought I have is what about the ability to keep daily backups for a week, and then weekly backups (1 per week), monthly (1 per month), etc like you can do with rsnapshot and other solutions? Thanks!