-
Posts
2,010 -
Joined
-
Last visited
-
Days Won
21
Everything posted by dragan
-
Are you sure this is a live / production site? What about this page? http://mbr-mining.com/team/ Don't all these Mohameds and Abdallas look a bit pale? With copy like this it just doesn't seem professional at all (to say the least): The short term will focus onminimizing cost, increasing production of our existing assets to the fullest capacity.And medium term continuing theexplorationto expand our properties and resources.
-
After deleting a language: Error: Maximum function nesting level
dragan replied to Marcel Stäheli's topic in General Support
No concrete idea, but just a few days ago somebody reported a weird behavior with xampp and xdebug. Maybe if you had only de-activated the second language, instead of deleting it, you wouldn't have had any such problems. By de-activating, I mean simply edit your home page, go to settings tab, and un-check your 2nd language (see below screenshot) You say you only "initially" have one language, and plan to activate the 2nd one later. Did you also change all multilang fields back to their "single-language" counterparts? Perhaps there's a root cause of your problems. I'd try first to de-activate xdebug altogether, install Tracy Debugger, and see how that goes. -
I'm not quite sure I understand... what is #colMedia? Maybe use another variable name than data in your success function? i.e. var d = $(data).find('#mediaGrid').html(); Do you add items with filtering, or remove? (remove would be the behavior that Lister Pro uses - i.e. show fewer items as you add more filter conditions)
-
Internal Server Error - InputfieldText not found
dragan replied to PensiveOwl's topic in General Support
You could try: Uncommenting this line in your .htaccess: https://github.com/processwire/processwire/blob/master/htaccess.txt#L92 Delete site/assets/cache folder contents Check site/assets/logs for additional hints what went wrong Check $config->httpHosts in site/config.php As a last resort, find out which version you had installed, and overwrite the entire wire folder with the same version. (use $config->version somewhere in your templates to find out which one you have installed). Backup the old wire folder (rename it), just in case. e.g. if you had v. 2.6.1, grab the wire folder from here https://github.com/ryancramerdesign/ProcessWire/tree/2.6.1 And finally... you could download the entire site, clone the DB, and try to make it run locally. But this shouldn't really be necessary. -
Maybe @ryan can share some light on this. Meanwhile, why not open an issue @ https://github.com/processwire/processwire-issues/issues ?
- 46 replies
-
- blog post
- change path formatting
-
(and 1 more)
Tagged with:
-
It just seems like this never really worked as intended, or maybe stopped working as expected. However, I just installed kixe's module mentioned earlier, and when I tried this children name format, it works: date(Y-m-d) title id gives me 2018-01-20-here-we-go-again-1043
- 46 replies
-
- 1
-
-
- blog post
- change path formatting
-
(and 1 more)
Tagged with:
-
You got an HTTP 500 error? I don't think that's expected behaviour... Is your site live? Is $config->debug set to true? What if you change it to false?
-
wp-content?
-
Howto change Textarea field to CKeditor field and keep formatting
dragan replied to lpa's topic in General Support
If there are many such fields, consider changing the textarea values via API + regex. e.g. with https://gist.github.com/jbroadway/2836900 Just take care about when using / removing / adding which textformatters in the whole process. Perhaps do a test with only a handful of fields first, and see if it works out OK? -
Maybe this will help?
-
And how do you generate the navigation?
-
Welcome to PW Could you describe a bit what those elements contain? I mean what kind of content would go inside "walk variations" or "walk segments"? Also, do you plan to include some maps? Is there maybe another similar site that does more or less what you're trying to do?
-
If I understood correctly, @oma wants to add something after the last matrix item of type x. That would be rather tedious with JS. I tried the following in a test-setup (albeit I used richtext as example type, not text): foreach ($page->matrix as $matrix) { $matrixTypes[$matrix->id] = $matrix->type; } $filtered = array_filter($matrixTypes, function ($var) { return ($var == 'richtext'); }); $lastElementKey = array_pop(array_keys($filtered)); Now you can do an if/else with the ID you have from $lastElementKey.
-
You mean adding something in the frontend template? Did you try a count() ? You could use a good old counter var and if/else inside your text repeater loop.
-
I have never done that, but here's the official docs: https://dev.mysql.com/doc/refman/5.7/en/converting-tables-to-innodb.html With a live site, I would first of all backup the DB, then duplicate the DB and set the copy to InnoDB. Then change the config to point to the new copy. Test as much as you can (frontend, backend - with devmode on and Tracy installed and running). Or even better: make an entire copy of the site too (sub-folder) and test only with that copy first. After first time running the cloned site, clear the modules cache and delete the site/assets/cache folder.
- 1 reply
-
- 2
-
-
[SOLVED] Weird problem with copy of production site
dragan replied to Krlos's topic in General Support
Check your .htaccess file -
Awesome! Just a few remarks after trying it out for 5-10 minutes... My main concern with such a powerful tool is security: I see you created a special permission for this module. I guess that your intention was that only superusers are able to use this module. If I allowed regular editors use this module, it'll only be a question of time till someone breaks stuff (editing core files, PHP etc.). I just want to make sure there's no nasty backdoor (like with WP's code editor, that is still installed and enabled by default, and is still a massive security hole)...
-
Don't know if you heard about it: There's a great CKEditor plugin called Accessibility Checker: https://ckeditor.com/ckeditor-4/accessibility-checker/ I have started to include it in every new PW installation and tell clients about it. Perhaps there's a way to include this as well?
-
Nice. I had Octotree installed since ages... Any plans to support Gitlab too?
-
Then I'd use asmSelect (autoselect multiple), with option to create new items by hitting enter.
-
Are the duties "free-form"? Or do you have a structured set of duties? If the latter, I would pagefields. I would do it without repeater matrix. parent page Members + child pages with tpl member Somewhere a parent page with child pages to store each duty. Then just use two text fields (firstname + lastname - gives you more possibilities for sorting), plus pagefields (select or checkboxes) for duties. You can control access rights on field-level.
-
Never tried something like this. In fact, I'm glad PW has this feature... I would try with 3) - take a look at this hookable method: https://github.com/processwire/processwire/blob/master/wire/modules/Inputfield/InputfieldFile/InputfieldFile.module#L532