简体   繁体   中英

Can't get Joomla site to work locally

I have a cloudaccess site on Joomla. I would like to be able to work on the site locally. I've downloaded the files and the database and am pretty sure I set them up correctly. I'm using xampp and I put the site files into a folder under htdocs. I used phpmyadmin to import the sql file. I made some changes to configuration.php to get it to connect to my database. When I try to visit the site I get this error:

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in C:\\xampp\\htdocs\\mysite\\libraries\\joomla\\error\\exception.php on line 117

My php memory_limit is 512MB and for a small few page joomla site, there's no reason that I'm using this much memory.

I've found that the problem occurs here:

$menu  =& JSite::getMenu(true);

when getMenu is called, if I put an echo statement in this function in JMenu:

function &getInstance($client, $options = array())

it gets printed over and over which makes me think somehow an infinite loop is happening but I'm not sure why...

Which version of joomla do you use?

I read something about this error appearing by using specific themes. Try to uninstall themes or to use the standard theme. Does it now work? If it works the error must be in the theme. So analyze it. Otherwise post it here ;-)

It just magically started working. I think it had something to do with the mod_rewrite setting but I can't prove it...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM