-
Posts
7,529 -
Joined
-
Last visited
-
Days Won
160
Everything posted by kongondo
-
OK. I have a quick look. There's multiple issues (I know, don't roll your eyes please ?) Internal Server Error: It seems this is being caused due to a script that is supposed to be generating the footer menu of the site Missing fonts: It seems the site was using Adobe Fonts and some of these are not activated Missing image(s): your /site/templates/img/ folder is throwing a 403 meaning this is a permission issue Our sessions: The accordion is not working but now errors are showing in the console. This suggest the JavaScript responsible for the accordion is probably missing? How important is this site to you? I am asking since apart from it being broken, I see texts relating to ProcessWire on the home page. To debug further, we would need to see some template files, names of modules that were installed in the original site, e.g. the one that was used to generate the menu in the footer.
-
?? Seems like a major release :-D. What's up? ?
-
Please be more specific. What do you mean are not working? Are they not displaying at all (white page) or are some bits showing and not others? Any errors?
-
This occurs very rarely :-). For your scenario, I'd probably do something like this: Download the database and assets from the old site to your computer. Work locally first! This means, set up two sites locally (MAMP/WAMP/Laragon, etc...whatever you use locally) Site #1: Replicate the old site in one install (running ProcessWire 2.7) Site #2: New ProcessWire install with the latest version of ProcessWire Check if there were modules installed on your old site that are no longer compatible (i.e. confirmed not working; not just by version numbers). If that's the case, you will need a few extra steps. Let us know first. Make sure the old site is working OK in your local test (Site #1) Now its time to Migrate things. The easiest is to your Adrian's Migrator tool (https://processwire.com/talk/topic/8660-migrator/). Use it to migrate the old site to the new one If everything works, it's time to test on your remote server/host ...let us know how it goes ?
-
@DaveC, Moderator Note: I split and moved your questions (and the subsequent responses) to their own thread here.
-
Hi Peter, A couple of things: Having bootstrapped ProcessWire, why not just use it to give you access to paths? That will make your code more portable and consistent $image_dir = $config->paths->files; $old_domain_file_dir = $SECONDARY->config->paths->files // etc This: If getting one, you might just as well use a get, no? // @note: no need for wire as well $old_results = $SECONDARY->pages->get("id=SOME_ID");
-
For these kind of things, I use the (some features still experimental) module Pages Export/Import, in-built field export and in-built template export. Pages Export/Import works a treat in most cases but you might need to experiment with it a bit first. Sometimes stuff fail in multilingual sites. If you are exporting too many pages and their assets [images, files] (the zip option) at a time, you could run out of memory. In this case, I export in batches. For non-asset exports (JSON option) it rarely fails. The module will allow you to export from any part of the tree, recursively if you want. It will also allow you to import to any part of the tree optionally updating or skipping existing identical pages, etc. This core module is not installed by default; you'll have to install it manually. If you decide to go this route, please make sure you experiment on a dev/local site first. Also backup your databases on the remote sites before starting, but I am sure you know this already ?.
-
Nice one, thanks! When I saw the post title, being in Tuts, I was expecting one of your long posts ?. This works fine though; simple and to the point!
-
Assuming you have a field called 'checkbox' of type Checkbox // these two will return identical results $found = $pages->find("checkbox=1");// find those whose values equal 1 // OR $found2 = $pages->find("checkbox!=''");// find those that are not empty // highly recommended; use Tracy :-) bd($found,'found 1'); bd($found2,'found 2'); Boolean fields will be stored as true = 1.
- 1 reply
-
- 1
-
-
...requirement... ?
-
Have a look at this: Or if you'd like to buy me coffee, have a look at this ?
-
@Jorge, Welcome to the forums ? There's 2 - 3 issues here: Every time a page is saved: Easily achieved using ProcessWire Hooks Commit and Push to Github: How are you currently doing this? Are you pushing from the server where you have installed ProcessWire? This is related to #1, basically, what you will do when you call your Hook Automation: Depend on your case this and #2 could be one and the same. Or this could be an independent process, e.g. a cron job triggered by #1 which then calls #2
-
Great! Glad you got it sorted.
-
Hi @dynweb, Sorry about the issue you are encountering. Yes. The value of PHP (php.ini) post_max_size was low. Please let me know what your settings are for the following: post_max_size memory_limit file_uploads upload_max_filesize This one (settings not getting saved) was related (at least in one case) to ProcessWire being installed in a sub-directory ?
-
Maybe give RockGrid and RockFinder2 a try? I'll tag @bernhard, the author to chime in if you need more info.
-
I was just wondering whether it was 'easier' to just roll-up a custom solution rather than fight with the admin theme CSS. Are you using PageFrontEdit module? I don't know how it looks in the frontend (I can't find a screenshots for it). Thinking out loud here, a js-css-agnostic solution would be nice. We already have the ProcessWire API in to handle forms server side + handling users. In the frontend you would use whichever framework you wish for your modals and customise it as you need. Even vanilla JS would do. :-).
-
Of files and images? Such as?
-
Aha. Worth keeping an eye on this then. Thanks for reporting back.
-
Just to add on to your list: Is this happening for all users or just guests? Do you have any autoload modules in place that could be interfering? Do you have any hooks in place that could be interfering? Single or multi-lingual site? Tracy debugger errors? Changes to .htaccess, i.e. some rule getting matched? Edit I don't think it is mod_security since you can access some pages but not others..
-
In case you missed it, GitHub bought npm https://blog.npmjs.org/post/612764866888007680/next-phase-montage https://github.blog/2020-03-16-npm-is-joining-github/
-
I still do this the old fashioned way ?. I have never gotten round to using the page key syntax. Instead, I do this, i.e. create my module's page title (and other stuff if required) in the ___install() routine. So, this could be a workaround in your case. Here's an example from my Blog module public function ___install() { $pages = $this->wire('pages'); // create Blog Admin page $page = $pages->get('template=admin, name='.self::PAGE_NAME); if (!$page->id) { $page = new Page(); $page->template = 'admin'; $page->parent = $pages->get($this->wire('config')->adminRootPageID); $page->title = 'Blog'; $page->name = self::PAGE_NAME; $page->process = $this; $page->save(); // tell the user we created this page $this->message("Created Page: {$page->path}"); } // we create the permission blog to limit access to the module $permission = $this->permissions->get('blog'); if (!$permission->id) { $p = new Permission(); $p->name = 'blog'; $p->title = $this->_('View Blog Page'); $p->save(); // tell the user we created this module's permission $this->message("Created New Permission: blog"); } // save initial module configurations $this->wire('modules')->saveModuleConfigData($this, self::configDefaults()); } In other modules I even call external scripts from within install().
-
Not at all! I thought you wanted to get your hands dirty, build a simple(r) blog from scratch. Along the process, you will learn more about ProcessWire. This is not meant to discourage you from using the Blog module :-). By all means, go for it, if it suits your needs. I don't think we've been properly introduced yet. So, welcome to ProcessWire and the forums ?
-
I am not sure what you mean by the last value of a field, so my response may not be relevant to your issue. Unless you are using some sort of version control, there is not concept of last value of field in ProcessWire. This just means that the current value of the field is the last value, so to speak. Could you expound a little bit on your context? I am guessing maybe it is something like this? Page A: Has a field share_price that changes dynamically/regularly At the end of business (or start of business next day) you create a page to store yesterdays last recorded share price Page Share Price Monday: Has field share_price_monday Etc for other days Page Share Price Tuesday: Has field share_price_tuesday Page Share Price Wednesday: Has field share_price_wednesday etc... For dynamic 'transfer' (copying of the value) you will need a hook. To trigger the hook on a non-event (for instance triggering the hook to run at the time 11:59), you will need to set up a cron job. There are modules in the forums that can do this.
-
Excellent work @horst. Thanks for obliging and doing this ?
- 16 replies
-
- 3
-
-
- tutorial
- default language
-
(and 4 more)
Tagged with: