-
Posts
94 -
Joined
-
Last visited
Everything posted by Claus
-
Just installed this module on the DEV version. But my hosting didn’t like it: Fatal Error: Uncaught Error: Call to undefined function disk_total_space() in site/modules/Duplicator/Duplicator.module:1135 #0 site/modules/Duplicator/Duplicator.module (1230): Duplicator::getLocalFolderInfo() #1 [internal function]: Duplicator::getModuleConfigInputfields(Array) #2 wire/core/Modules.php (4110): call_user_func(Array, Array) #3 wire/core/Wire.php (420): Modules->___getModuleConfigInputfields('Duplicator', Object(InputfieldForm)) #4 wire/core/WireHooks.php (951): Wire->_callMethod('___getModuleCon...', Array) #5 wire/core/Wire.php (485): WireHooks->runHooks(Object(Modules), 'getModuleConfig...', Array) #6 wire/modules/Process/ProcessModule/ProcessModule.module (1665): Wire->__call('getModuleConfig...', Array) #7 wire/modules/Process/ProcessModule/ProcessModule.module (1399): ProcessModule->renderEdit('Duplicator', Array) #8 wire/core/Wire.php (414): ProcessModule->___executeEdit() #9 wire/core/WireHooks.php (951): Wire->_callMethod('___executeEdit', Array) #10 wire/core/Wire.php (485): WireHooks->runHooks(Object(ProcessModule), 'executeEdit', Array) #11 wire/core/ProcessController.php (337): Wire->__call('executeEdit', Array) #12 wire/core/Wire.php (414): ProcessController->___execute() #13 wire/core/WireHooks.php (951): Wire->_callMethod('___execute', Array) #14 wire/core/Wire.php (485): WireHooks->runHooks(Object(ProcessController), 'execute', Array) #15 wire/core/admin.php (160): Wire->__call('execute', Array) #16 wire/modules/AdminTheme/AdminThemeDefault/controller.php (13): require('/customers/a/0/...') #17 site/templates/admin.php (15): require('/customers/a/0/...') #18 wire/core/TemplateFile.php (327): require('/customers/a/0/...') #19 wire/core/Wire.php (414): TemplateFile->___render() #20 wire/core/WireHooks.php (951): Wire->_callMethod('___render', Array) #21 wire/core/Wire.php (485): WireHooks->runHooks(Object(TemplateFile), 'render', Array) #22 wire/modules/PageRender.module (575): Wire->__call('render', Array) #23 wire/core/Wire.php (417): PageRender->___renderPage(Object(HookEvent)) #24 wire/core/WireHooks.php (951): Wire->_callMethod('___renderPage', Array) #25 wire/core/Wire.php (485): WireHooks->runHooks(Object(PageRender), 'renderPage', Array) #26 wire/core/WireHooks.php (1059): Wire->__call('renderPage', Array) #27 wire/core/Wire.php (485): WireHooks->runHooks(Object(Page), 'render', Array) #28 wire/modules/Process/ProcessPageView.module (184): Wire->__call('render', Array) #29 wire/modules/Process/ProcessPageView.module (114): ProcessPageView->renderPage(Object(Page), Object(PagesRequest)) #30 wire/core/Wire.php (417): ProcessPageView->___execute(true) #31 wire/core/WireHooks.php (951): Wire->_callMethod('___execute', Array) #32 wire/core/Wire.php (485): WireHooks->runHooks(Object(ProcessPageView), 'execute', Array) #33 index.php (55): Wire->__call('execute', Array) #34 {main} thrown (line 1135 of site/modules/Duplicator/Duplicator.module) This error message was shown because: you are logged in as a Superuser. Error has been logged.
-
Ping @kongondo
-
I could see I needed to split my ‘news’ page (that I use the Blog Module for) into multiple pages, so I entered ‘10’ in the field ‘Blog Homepage: Total Posts’ and pressed enter. Now the latest 10 posts are missing from the webpage, but they still exits in the database. What happened and how do I get the posts to show again? A further look around the database reveals that the pages_id of the six latest blog-posts are now used by other pages id.
-
Oh, so it was because I had wrapped the code in an <object> tag. Removing it fixed it, so Hanna Code works as expected.
-
Hello people. I want to inject some ad hoc SVG objects into a page using Hanna code. The code is sanitised SVG + some JS to run the animations in it. However I can’t get my Hanna-code snippet to just be inserted into the relevant page. If I set ‘Code type’ to ‘Text/HTML’ I get this: When I choose JS I get: <script type='text/javascript'>var attr = { }; <object type="image/svg+xml"><svg xmlns="http://www … What do I do?
-
Thank you. Looks like there is no way around diving in at the deep end.
-
Sorry, I am not a developer and it has been years since I looked at PW last – so please excuse my ignorance. This is just for my personal website where I am the only user. I have no idea where to put this code. Which file? I’m trying to put these SVGs in my `basic-page` and `blog-post` templates. In the `basic-page` there is just `$content = $page->body;` (and then some navigation). At least the `sth` field works, and I can upload the SVGs to it, and then place them in a page.
-
Seems like you are right. I have created the STH-field, and added it to the ‘basic-page’ template, set it to accept SVGs, but where do I put your code-snippet?
-
I’ll put the question to the developer of the generating app. Thanks again Adrian!
-
Bingo! Thank you very much Adrian! I was feeling that this SVG thing felt very un-Ryanesque. Of course he thought of that, it was just a matter of finding the switch. So now I am down to the new issue: How do I make these SVGs animate? See if any of this rings a bell: I can now upload the SVGs, and I can place them in a post, but only the first frame will show – no animation. Goes for all browsers, also after emptying the cache, re-opening the browsers. The SVGs in question will animate correctly when I right-click on one of them in the page, and open it in a new tab. The SVGs are animating using internal JavaScript, so can PW hinder this JS to fire?
-
Oh, several times. But just now I went to the Upgrades interface again, and now the DEV is listed. Apparently PW needed to have a think and a soak first. Also – having just done it now – the PW versions disappear from the list when I press ‘Refresh’! And now with the DEV version installed PW still refuse SVGs, and does not offer any hints about what to do.
-
-
Closed Chrome and tried logging in again. Didn’t help, still no DEV version on offer. My ProcessWireUpgrade is v. 0.1.1
-
Urg, now I can’t upgrade to the DEV version – it doesn’t show up in the SystemUpdater module. It did earlier today! Ha ha, I’m feeling pretty rusty today, but it has been a while since I looked at this last. So for captain slow here, how can I cajole PW to let me upgrade to the DEV version from within the admin interface?
-
It did fix that issue – but not the upload issue, nor the animation issue. Here firstly is the error console output: Secondly, is there a way to use SVGs exactly as I upload them, around the ‘SVG File Sanitizer/Validator’ module? I don’t need the sanitation, but this module seems to be required to use SVGs at all???
-
New problem: The SVGs are supposed to be animating, however they are not. They are also minified even though I specifically turned that off and re-imported them. Yes, I’ve attached a screenshot of the errors:
-
It does not say anything revealing about the stall. Nope. Appears to be random. Sometimes it helped adding them one-by-one, but it is no correlated to the specific files. I also turned on and off the ‘external reference’ test, and that didn’t change anything. Anyhoot, it’s Safari so failure is to be expected.
-
I wanted to use some SVGs in a very ordinary page, so I installed the SVG File Sanitizer/Validator module. That allowed me to upload SVGs into the editor. However, in more than half the times I try to upload an SVG file, the editor will just spin the circular dots and never finish. I then have to reload the page and start again. Why oh why – does anyone know? I’m using 3.0.184, working from the MacOS Safari 15.3 (17612.4.9.1.8) browser. I have my AdGuard disabled, and deleting the Page Renderer Cache does not help. NB: Just tried it in Chrome, and that worked no problemo. Appears to be a Safari specific issue. Which reminds me: Are there more than one editor available in ProcessWire? I seem to vaguely remember something along those lines?
-
Bingo! Thanks.
-
I just realised that a user can omit filling out any of the form fields, then press 'Send', and an email will be sent. Am I doing something wrong, or how can I stop this from happening?
-
What would be the way to import blog posts from one PW-DB to another? I had a working PW installation with some blog-posts in it. I then exported the 'blog' fields using MySQL Workbench, then deleted the fields in the target DB, and then imported the exported SQL-file into this new DB. Alas that didn’t work. The 'blog' fields exist in the new DB, and they are populated with the correct data, but in the PW admin interface they don’t show up under Pages nor under Blog:Posts. I probably did something terrible?
-
I’m using the Comments module via the Blog module, and I’d like to add ‘placeholder’ texts in the name, email, and text input fields of the comment function. How do I do this with the least amount of surgery? (And BTW, should ‘placeholder’ not be included by default in the Comments module markup? I think it ought to.)
-
I’d like to add ‘placeholder’ texts in the name, email, and text input fields of the comment function. How do I do this?
-
Figured it out. I needed to enable it under Admin>Setup>Fields>Body>Input>CKEditor Toolbar by adding ‘Styles’ there, and then editing the ‘mystyles.js’ and adding its path to ‘Custom Editor JS Styles Set’. Works like a treat.
-
How do I go about adding custom markup to my Body-fields? I want to add some spans, but they are all removed if I add them in the ‘Source’ window. I can see that the Body-field is edited by CDEditor, but how do I add a custom ‘mystyles.js’ to it? (If that indeed is what I need to do). The guides I have have found on this seem outdated.