Roych Posted August 21, 2020 Share Posted August 21, 2020 Hello, Everything was working fine until I pasted the Iframe code in ckeditor "body" (through source), then the site won't load anymore. I get: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /wire/core/Modules.php on line 2727 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /wire/core/WireShutdown.php on line 426 The admin area is working but very slow, I tried to delete the iframe code, but it wasnt there at all. I also looked in DB but the code is nowhere to be seen. The site won't even load anymore. Any idea what could be happening. I also deleted the cash but no changes. The iframe code I put in was a googleforms Spoiler <iframe src="https://docs.google.com/forms/d/e/1FAIpQLSczjrIs47Nd9iJiPFtTNH_sRJgdBOXvw29vJFKLo20jJJwIvw/viewform?embedded=true" width="640" height="4264" frameborder="0" marginheight="0" marginwidth="0">Nalaganje …</iframe> Thank you very much R Link to comment Share on other sites More sharing options...
Sergio Posted August 21, 2020 Share Posted August 21, 2020 Strange problem. Can you try increase the maximum memory for PHP (memory_limit) by editing the file php.ini in your server directly or using a control panel? Look for a line like this: memory_limit = 512M Link to comment Share on other sites More sharing options...
Roych Posted August 21, 2020 Author Share Posted August 21, 2020 I already tried I have 512M set atm. Cant increase more in control panel. Link to comment Share on other sites More sharing options...
BillH Posted August 21, 2020 Share Posted August 21, 2020 When you say you have deleted the cache, do you mean your browser cache or PW cached files? If you haven't cleared PW cached files, they're at Site > Assets > Cache, and it's probably just the ones in Page that might be relevant. You can simply delete everything in the folder. Alternatively, you can clear cached page output by going to Modules > Core > PageRender > Settings. I don't know if this will help, but it's worth a try. Link to comment Share on other sites More sharing options...
Roych Posted August 21, 2020 Author Share Posted August 21, 2020 3 minutes ago, BillH said: When you say you have deleted the cache, do you mean your browser cache or PW cached files? If you haven't cleared PW cached files, they're at Site > Assets > Cache, and it's probably just the ones in Page that might be relevant. You can simply delete everything in the folder. Alternatively, you can clear cached page output by going to Modules > Core > PageRender > Settings. I don't know if this will help, but it's worth a try. Already tried both. thx Link to comment Share on other sites More sharing options...
BillH Posted August 21, 2020 Share Posted August 21, 2020 Just another guess, but as the error occurred in modules.php (though this may just be when the memory ran out), it might be worth clearing compiled files as well, if you haven't done it already. Modules > Site > Clear Compiled Files (at the bottom of the page). Link to comment Share on other sites More sharing options...
Roych Posted August 21, 2020 Author Share Posted August 21, 2020 24 minutes ago, BillH said: Just another guess, but as the error occurred in modules.php (though this may just be when the memory ran out), it might be worth clearing compiled files as well, if you haven't done it already. Modules > Site > Clear Compiled Files (at the bottom of the page). I tried an I still get this 2 errors: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /wire/core/WireData.php on line 68Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32768 bytes) in /wire/core/WireHttp.php on line 1 Link to comment Share on other sites More sharing options...
Sergio Posted August 21, 2020 Share Posted August 21, 2020 Try to unpublish the page where you put the iframe using the API or directly on the database 'pages' table by changing its status to "2049". Link to comment Share on other sites More sharing options...
Roych Posted August 21, 2020 Author Share Posted August 21, 2020 44 minutes ago, Sergio said: Try to unpublish the page where you put the iframe using the API or directly on the database 'pages' table by changing its status to "2049". I actualy already deleted the page and emptied the trash but still. ? Link to comment Share on other sites More sharing options...
kongondo Posted August 21, 2020 Share Posted August 21, 2020 ProcessWire version? Link to comment Share on other sites More sharing options...
kongondo Posted August 21, 2020 Share Posted August 21, 2020 4 hours ago, Roych said: The iframe code I put in was a googleforms Is this the whole iframe code? I've just pasted it and saved and there is no glitch at all. Link to comment Share on other sites More sharing options...
kongondo Posted August 21, 2020 Share Posted August 21, 2020 2 minutes ago, kongondo said: Is this the whole iframe code? I've just pasted it and saved and there is no glitch at all. Silly me. That's because the iframe is being stripped out in my tests. Let me try again, properly this time :-). Link to comment Share on other sites More sharing options...
kongondo Posted August 21, 2020 Share Posted August 21, 2020 OK, I tested again, iframe appears in frontend, no issues at all. Did you allow iframes in CKEditor, like this? Aside, do you really need the iframe in your rich text? Have you tried using it (if you must) directly in a template file? Link to comment Share on other sites More sharing options...
BillH Posted August 21, 2020 Share Posted August 21, 2020 And another question: how much data do you have in that field and across how many pages? I ask because one possible option, if you get really stuck, might be to delete the field and recreate it. Link to comment Share on other sites More sharing options...
Roych Posted August 21, 2020 Author Share Posted August 21, 2020 6 minutes ago, BillH said: And another question: how much data do you have in that field and across how many pages? I ask because one possible option, if you get really stuck, might be to delete the field and recreate it. Already tried that also. I enabled the iframes in ckeditor too. Not sure what happeed, but I just recreated the whole site and made whole alot of backups ? Thank you very much. R Link to comment Share on other sites More sharing options...
BillH Posted August 21, 2020 Share Posted August 21, 2020 If you can't put the iframe in a template (as @kongondo suggests) and need it in a CKEditor field, it'd be worth considering (if you haven't already) the Hanna Code module. 1 Link to comment Share on other sites More sharing options...
Roych Posted August 24, 2020 Author Share Posted August 24, 2020 Hello, I have just played with the site again and noticed that this error only happens when I have Video markup for YouTube/Vimeo added to the body field. As soon as I disable it the site comes back and working normaly. This time I didnt have any Iframes inside my ckeditor. Just copy/pasted some normal plain text. Is there maybe something wrong with the module or ... thank you R Link to comment Share on other sites More sharing options...
teppo Posted August 24, 2020 Share Posted August 24, 2020 @Roych, you should probably report the issue at the module's support board, so that the author gets notified: . 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now