Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate
-
suggested by the moderator.
That’s an absolutely incomprehensible error, but it suggests the problem is in the Shapely theme.
I recommend reporting the problem at https://www.ads-software.com/support/theme/shapely/ so the theme’s developers and support community can help you with this.
Original post
When I updated my PHP version to a higher version, believe it was 7.4 I would get this error message, Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32768 bytes) in /hermes/bosnacweb05/bosnacweb05bi/b803/ipg.evodawg/wp-admin/includes/deprecated.php on line 1130 When I set it back to the original, which I believe was 7.1 it goes away. Is this a plugin problem or something else. Little concerned because the old version of PHP won’t be supported in the near future and does have security concerns. Not sure I want to link to my site with the suppose security concerns. Thanks in advance.
James Huff (@macmanx) Volunteer Moderator 15 hours, 45 minutes ago More than likely what you set PHP’s memory as under 7.1 did not carry over to 7.4. Here are three ways to increase PHP’s memory allocation: 1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M 2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file. 3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider. We have some recommendations at https://www.ads-software.com/hosting/ (in the above examples, the limit is set to 128MB)
evodawg (@evodawg) 15 hours, 20 minutes ago Is 128m sufficient? or are you only using this as an example? ModeratorJames Huff (@macmanx) Volunteer Moderator 15 hours, 18 minutes ago It’s just an example, but also it should be sufficient for most use cases. If it’s not sufficient for yours, try 256M. If you need more than 512M though, you may have a bigger problem elsewhere, like a plugin hogging all of your resources. Thread Starterevodawg (@evodawg) 12 hours, 56 minutes ago went to edit php.ini and its already at 512m…. ; Maximum amount of memory a script may consume (128MB) ; https://php.net/memory-limit memory_limit = 512M I will check what’s in my .htaccess file. Everything seems to be working well now. But I’m concerned that when I upgrade to the newer version 7.4 I’ll get that error again. Probably a plugin hog. Thread Starterevodawg (@evodawg) 12 hours, 46 minutes ago No mention of php in .htaccess. Should I add the script anyway and should I use 128 or 512m?? Thread Starterevodawg (@evodawg) 12 hours, 41 minutes ago went back to 7.4 and I’m getting error again. When I set it back to 7.1 I don’t get error. Hmmmmmm. Thread Starterevodawg (@evodawg) 12 hours ago This is the error I get when I switch back to 7.4 at the top of my website. Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /hermes/bosnacweb05/bosnacweb05bi/b803/ipg.evodawg/wp-content/themes/shapely/inc/extras.php on line 442 Thread Starterevodawg (@evodawg) 11 hours, 32 minutes ago Where is this error located so I can change or Unparenthesized the line? Deprecated: Unparenthesized a ? b : c ? d : e is deprecated. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /hermes/bosnacweb05/bosnacweb05bi/b803/ipg.evodawg/wp-content/themes/shapely/inc/extras.php on line 442 ModeratorJames Huff (@macmanx) Volunteer Moderator 7 hours, 48 minutes ago That’s an absolutely incomprehensible error, but it suggests the problem is in the Shapely theme. I recommend reporting the problem at https://www.ads-software.com/support/theme/shapely/ so the theme’s developers and support community can help you with this.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate’ is closed to new replies.