Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    160

Everything posted by kongondo

  1. Errors in ProcessWire logs? A server error, etc?
  2. I am guessing they are related... Applying this to your case... It means line 119 refers to the script where the header() invocation failed (i.e. in shutdown.php). However, the source is line 19 in WireData.php. In my PW version, that's the beginning of the Class WireData. So unless you touched that, then it is probably something calling WireData.php that's failing.. Hard to tell though. The last time I got this error was trying to delete some page via API and it didn't work and it got stuck in memory and had to restart Apache...I know this is probably not too helpful...
  3. Hi driedstr, Welcome to PW and the forums. Here are some typical causes of that PHP error: http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php Any of those apply to you?
  4. You need to save the page first, then add the files, then save again (see example here)...So, are you sure the files are not getting uploaded or you are removing them (the code after ....// remove all tmp files uploaded) after saving the page?
  5. Welcome to the forums and ProcessWire You got two options: Use the ImageExtra module If you are using the page itself as a store for the image, you can use your page's title as the image's title By the way, in case you haven't seen it, you can enable image tags when editing your image fields.
  6. It is a recommendation (and for good reason...performance-wise [Google it] ).....but, personally, I almost always use your '2nd' example $editUrl = 'data-mfp-src="' . $page->editUrl . $lang . '&modal=1"'; ...for readability.... as long as there is no performance hit...
  7. Have a read here: https://processwire.com/talk/topic/225-how-to-work-with-ajax-driven-content-in-processwire/ It would be good to use $config->ajax; (or wire('config')->ajax if within a function Welcome to ProcessWire and the forums Edit: Your code is probably just an example but you need to sanitize your inputs before saving them and entitiy encode them if you are going to be echoing them back to the user immediately Edit 2: What Soma said below
  8. Hi @Mattia90 Apologies for the delay in getting back to you. I don't know about your setup there but MenuBuilder should work out of the box with a Multi-lingual site except for this one issue reported here include a possible fix which I am yet to implement. Does that fix help in your case? MenuBuilder will read and load the correct language of the user. No need to specify titles for each language when building the menu. What do you mean by: Is Menu_X the title of the menu you created? Does your site work normally otherwise?, i.e. without MenuBuilder? Like I said, I have tested it with ProcessWire's site-languages and it works fine (with three languages).
  9. Database speed is very fast....Just don't retrieve all your 10K pages at once ....Use 'limit' in your selector and you will be fine. Welcome to PW and the forums
  10. echo $page->parent->title; echo $page->parent->name; echo $page->parent->id; echo $page->parent->whatever_property;// non-array property
  11. If you understand German... http://bfncs.github.io/wwms-processwire/
  12. See if this topic helps https://processwire.com/talk/topic/268-processwire-on-windows72008-server-with-iis-webserver/ Edit: Beaten to 3rd place
  13. Yes, just like it says in the instructions @RogC1, Welcome to PW and the forums. Please note that the CSS and the demo template files are just that; a demo...You can do pretty much what you want using MarkupBlog. I'm in the process of transferring the documentation to my new server. Thanks for choosing Blog
  14. Thanks to @Horst, I am using HeidiSQL to connect and CRUD my remote databases. It works well and is very fast, can set up users, etc. It allows to connect via various network types including SSH Tunnel, named pipe, TCP/IP, etc. You really want to use SSH though. I recently needed to import a sql dump with > 10K pages into a remote database and it warned me memory could be exhausted so gave me the option to read in the values instead. Worked a treat and quite fast! The documentation is also brilliant. Server side, I have set up a traditional MySQL install.
  15. If pagination wasn't working it is most likely because in your own template's settings, you did not tell it to allow pagination. When editing a template, this is set in the URLs tab -> Allow Page Numbers
  16. Ah, it makes sense, thanks.
  17. Nice one Adrian, thanks! Was hoping to see some screenshots of a restricted view page tree branch Just to clarify, by branch you mean a parent page and all its descendants? So, in the example tree below, would the green branches be visible and the red ones be invisible to user X whose view has been restricted? Home My Visible Branch My Do Not List Branch Child 1 Child 2 My Visible Child Branch
  18. Hi @Mattia90, Welcome to ProcessWire and the forums. Sorry about the problems you are encountering with MenuBuilder. I am the author of the module. To be honest, I know next to nothing about multilingual setups. I don't know how to add or remove a language or how to specify a default language nor about the various approaches to setting up a multilingual site . However, I have tested MenuBuilder with the default ProcessWire multilingual install and it works fine. Other guys have had issues with MenuBuilder after they'd removed a language. I have not been able to reproduce some of the issues. So, unless someone can give me a 'dummies' step-by-step instruction on how to reproduce their multilingual error/bug, I have no way of fixing the issues .
  19. Update: Merged dev 1.0.4 to master
  20. That is rendered automatically by the method renderPosts() depending on whether there are more posts than the specified limit. For instance, if you have 20 posts in total, and your requested 5 (i.e. 5 will be shown per page), then the remainder (15) will be spread over the next 3 pages (5 per page).
  21. Blog Master Branch updated to 2.3.5 (see changes in this post)
  22. If by pagination you mean the next/prev links, that is rendered by renderNextPrevPosts(). E.g., see the second to last line with $blog->renderNextPrevPosts($page); in blog-post.php demo file Blog has documentation that covers most of its method. Unfortunately it is currently offline as I shift servers. See the link a couple of posts up for an internet-archived version.
  23. Use getQueryLog() Maybe something like: $queries = $database->getQueryLog(); foreach($queries as $query){ if (strpos($query, 'classification')) {//just to limit our search since there could be other queries echo '<pre>' . $query . '</pre>'; } }
  24. Creating my book websites with Processwire http://cchogan.com/food-and-stuff/using-processwire-for-my-book-websites/
  25. Any JS errors in the console?
×
×
  • Create New...