Support > cpg1.6 miscellaneous

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate

<< < (2/2)

ron4mac:
Uploading files should really have nothing to do with what theme is being used at the time of upload but, unfortunately, the way the core of CPG was designed, a lot of stuff about the theme comes into play even during an upload. If the theme is a complex one with added actions, it may needlessly use some of the PHP memory in the upload process. So you might try doing uploads with a lightweight theme. Do you know the trick of temporarily using a different theme, Hanna?
<MY-GALLERY>/index.php?theme=water_drop
That will cause your current browser to use that theme until it is reset.
<MY-GALLERY>/index.php?theme=xxx

Hanna.:

--- Quote from: ron4mac on March 15, 2023, 10:04:25 pm ---Uploading files should really have nothing to do with what theme is being used at the time of upload but, unfortunately, the way the core of CPG was designed, a lot of stuff about the theme comes into play even during an upload. If the theme is a complex one with added actions, it may needlessly use some of the PHP memory in the upload process. So you might try doing uploads with a lightweight theme. Do you know the trick of temporarily using a different theme, Hanna?
<MY-GALLERY>/index.php?theme=water_drop
That will cause your current browser to use that theme until it is reset.
<MY-GALLERY>/index.php?theme=xxx

--- End quote ---

Just saw this now. Yes, indeed I tried this method. I am not even trying to upload big stuff (max 2048px) and all I get is:


--- Code: ---Fatal error: Uncaught TypeError: readdir(): Argument #1 ($dir_handle) must be of type resource or null, bool given in /public_html/searchnew.php:238 Stack trace: #0 /public_html/searchnew.php(238): readdir() #1 /public_html/searchnew.php(394): getfoldercontent() #2 /public_html/searchnew.php(570): CPGscandir() #3 {main} thrown in /public_html/searchnew.php on line 238
--- End code ---

Hanna.:
I went through the stub (https://forum.coppermine-gallery.net/index.php/topic,79013.0.html), deactivated all plugins and theme (now running theme water_drop) and still getting this error.

Hanna.:
Attaching debug info.

Navigation

[0] Message Index

[*] Previous page

Go to full version