Jump to content

Allowed memory size exhausted after moving to XAMPP on MacOS


Recommended Posts

After moving my Web IDE from Windows to MacOS, both with XAMPP, I can't open my PW-based site any more. The browser shows this message:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /Applications/XAMPP/xamppfiles/htdocs/jvh/wire/core/WireHooks.php on line 205

On my previous Windows installation, the same site loads without problems. Even increasing the PHP memory_limit of 512MB by a factor 10 doesn't change anything (except the location of the error), so I think, a low memory_limit value shouldn't actually be the problem. But what else? Any help is appreciated.

Using XAMPP 8.2.4 for MacOS, ProcessWire 3.0.200.

Link to comment
Share on other sites

Hi @FlorianA

Looks like there is some endless loop issue in your php that consume all the memory you allocate to PHP. The first thing I would do is enable PorcessWire debug mode. You can edit your site config.php to enable it by adding this line $config->debug =  true

You will have more info about what is going wrong.

  • Like 1
Link to comment
Share on other sites

OK, it proceeds, there were still some filesystem and database permission issues, that's why I couldn't see log messages. I still can't see my pages, but I think it's because something went wrong at DB import - e. g. the "pages" and the "templates" table are missing. Hope I can resolve this myself, thank you so far.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...