-
Posts
7,529 -
Joined
-
Last visited
-
Days Won
160
Everything posted by kongondo
-
I am talking about multi-instance ? not multi-site. They are two different things. // public site $somePage = $pages->get('/some/page/'); // second site // create instance $site = new ProcessWire('/path/to/www/', 'http://domain.com/'); $stuffFromSecondSite = $site->pages->find("template=very-important-stuff,sort=-created, limit=3"); // do whatever with $stuffFromSecondSite No namespace issues using above.
-
RockFinder3 - Combine the power of ProcessWire selectors and SQL
kongondo replied to bernhard's topic in Modules/Plugins
No worries. Moved to to the right place. -
RockFinder3 - Combine the power of ProcessWire selectors and SQL
kongondo replied to bernhard's topic in Modules/Plugins
@psy, Is this thread related to a module you are developing? If so, I'll move it to the module development sub-forum. Otherwise I'll have to merge it to RockFinder 3 thread ?. -
I haven't done this before (split websites) but what you describe seems doable using ProcessWire's multi-instance capability. That would require that both sites are on the same server though. https://processwire.com/blog/posts/multi-instance-pw3/
-
By the way, a quick workaround, if you insist on living on the edge is to do the following: Edit a Media Manager field (e.g. media_manager_image) Change its Use Tags setting and save Revert the change to what it was before and save again Uploads should now work. Note though that using the 'Cleanup' feature might still throw the PDO error linked to in the post above.
-
Hi all, A recent change in ProcessWire has partly broken part of Media Manager's upload feature (see the screenshot in this post with the PDO error, thanks to for @Mustafa-Online reporting). My strong feeling is that it has to do with the recent changes to the Database Class(es). I am looking into this and will report back as soon as I can. Thanks.
-
Please check PM. Thanks.
-
Please confirm where exactly in the assets folder. With the settings you've shown me, they should be in /site/assets/MediaManager/jqfu/.files_no_show. Please also confirm: Are you on MAMP? Are you on a Windows or a Mac or other? Is ProcessWire installed in a sub-folder? Sorry for the hassle. I'd really like to get to the bottom of why for most MM works flawlessly and for a few others there are upload issues. Thanks.
-
@Mustafa-Online, What are you Media Manager settings for the following? After Uploading Image Extensions Have a look at the dev tools, network tab, xhr when uploading: Are the files posted? What response does the server return? Do you have the following directories under /site/ ? /sites/assets/MediaManager/jqfu /sites/assets/MediaManager/uploads Btw, post_max_size needs to be bigger than upload_max_filesize. See this post by Horst. Could you try with config->debug=true and TracyDebugger and let me know if you get any errors please? I have just tested with the latest dev version and it works OK.
-
No idea then, in that case, sorry ?
- 246 replies
-
- 1
-
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Hi @Mustafa-Online, Thanks for the purchase. Sorry about this. Please check and confirm the following: post_max_size memory_limit file_uploads upload_max_filesize In addition, please confirm the following: What are you trying to upload? Are they perhaps smaller/larger than what you have in the settings for minimum/maximum sizes? Is this a multilingual site? ProcessWire version. PHP version. Thanks.
-
If the methods are still empty as in your example or populated?
- 246 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
@SlackMcKracken, Welcome to the forums ?
-
I couldn't go through all the cope you pasted but I'd suggest this simple test. In each .inc file, do this: echo 'Hello from INSERT_INC_NAME';// replace INSERT_INC_NAME with respective inc's name Then look at the output. It may be that there are no child pages to display, hence no output.
-
Yes. A DB search revealed the name in template_bak
-
Um, nope. There is no user-hunt2 template ? Just hunts (modified 5 hours ago) and user-hunt (modified 2 days ago). I had a look and nothing obvious jumps at me. All I can see via debugging (and the error), that somewhere, a user instance (ProcessWire\User) is being converted to a page (ProcessWire\Page). I am pretty sure it has to do with a change made to the settings rather than a change at a template file level (since I don't have your template files and I see the error). I'll have one last look and if I can't get it to work, I'll pass it to you with the details on how you can get in and undo your previous changes.
-
That's not how it works ? ProcessWire does not just read files on your system arbitrarily Templates have to be 'registered' with ProcessWire Templates do not need to have a template file (some of the files you are seeing in the ftp) Template file names do not need to match the name of the template (i.e., default is that they match, but this can be changed) Some developer uses the templates folder to store PHP files they can include in their template files or modules Hooray! We have (partial) lift-off ?
-
OK, I got in (admin) with a bit of a hack ?. Would you like me to show you how so you can go make changes yourself? i.e., undo the last 'user template' thingy. Or would you like to outline what you did so I can try undo?
-
No, not here ? PM How big is it? You might not be able to attach it if it bigger than some set size.
-
I'm not sure how this multiple users template works but there's possibly other references to the template you deleted. I can't set up a test site now to check. Are you able to set up a duplicate remote test site (or send me a db dump of such a site) that we can have a look at? Backup your db before making any changes.
-
Yes. Via the database. Was site working before this change?
-
Most likely related to what you were doing here?
-
@Pip, Moderator note: Hi. I moved your question here, the support forum of MarkupSimpleNavigation.
-
https://processwire.com/docs/start/install/upgrade/
-
$news = $pages->find("template=news-article,sort=-publish_date, publish_date<$today,id!={$page->id}"); PS: if publish_date is a datetime field, then ProcessWire already knows 'today' (string) ?.