# Admin Panel and Shop Frontend Giving localhost 500 error

**URL:** <https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450>\
**Category:** English forums\
**Tags:** oxid6, basics\
**Created:** [July 15, 2019, 11:46am UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450 "2019-07-15T11:46:38Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohsin\_Javaid](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/mohsin_javaid/32/1406_2.png) [@Mohsin\_Javaid](https://forum.oxid-esales.com/u/Mohsin_Javaid)\
**Post date:** [July 15, 2019, 11:46am UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/1 "2019-07-15T11:46:38Z")

</div>

I am trying to migrate from oxid version 4 to oxid version 6

I am using this guide here: [https://docs.oxid-esales.com/developer/en/6.0/update/eshop\_from\_53\_to\_6/index.html](https://docs.oxid-esales.com/developer/en/6.0/update/eshop_from_53_to_6/index.html)

Problem is in database migration. I installed oxide version 6.0 from composer and after installation i completely emptied its database. Imported my oxid 4 database and ran the two scripts:

**migrate\_pe\_5\_3\_to\_6\_0.sql**  
**migrate\_pe\_5\_3\_to\_6\_0\_cleanup.sql**

After that i ran the given the commands:

**vendor/bin/oe-eshop-db\_migrate migrations:migrate**  
**vendor/bin/oe-eshop-db\_views\_generate**

Now when i go to localhost and try to access my shop or its admin panel. The only thing i get is

**localhost is currently unable to handle this request.  
HTTP ERROR 500**

and there are no error logs in EXCEPTION\_LOG.txt

What should i do? What am i doing wrong here?

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [July 15, 2019, 12:48pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/2 "2019-07-15T12:48:02Z")

</div>

You can set $this-\>iDebug = 1; in config.inc.php (enable write access first) and see if an error is displayed, otherwise you have to get access to the apache webserver error logs.

---

<div class="post-metadata">

**Author:** ![Mohsin\_Javaid](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/mohsin_javaid/32/1406_2.png) [@Mohsin\_Javaid](https://forum.oxid-esales.com/u/Mohsin_Javaid)\
**Post date:** [July 15, 2019, 12:54pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/3 "2019-07-15T12:54:03Z")

</div>

@leofonic I set **$this-\>iDebug = 0** to **$this-\>iDebug = 1** and also check apache error logs.  
The first error i get is this:

**Fatal error: Maximum function nesting level of ‘256’ reached, aborting! in D:\UwAmp\www\oxid\_pe\_6\_one\vendor\oxid-esales\oxideshop-ce\source\Core\NamespaceInformationProvider.php on line _76_**

This is a core file, i dont think i should be making changes in that. What could be wrong in that can you please guide ?

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [July 15, 2019, 1:02pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/4 "2019-07-15T13:02:07Z")

</div>

There might be an error with module configuration, you can reset module info with this SQL:

```
delete from oxconfig where oxvarname in ('aModulesHistory','aModuleVersions','sUtilModule','aDisabledModules','aLegacyModules','aModuleFiles','aModulePaths','aModules','aModuleTemplates');

```

and clear /tmp right after this sql.

---

<div class="post-metadata">

**Author:** ![Mohsin\_Javaid](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/mohsin_javaid/32/1406_2.png) [@Mohsin\_Javaid](https://forum.oxid-esales.com/u/Mohsin_Javaid)\
**Post date:** [July 15, 2019, 1:09pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/5 "2019-07-15T13:09:51Z")

</div>

@leofonic That worked like a charm! i am now logged in to admin panel, but however i still can’t access the shop frontend. I get this error:

**Warning: Smarty error: unable to read resource: "message/exception.tpl" in D:\UwAmp\www\oxid\_pe\_6\_one\vendor\smarty\smarty\libs\Smarty.class.php on line _1100_**

Please know that, i am migrating from so i guess theme files maybe missing, so while i am porting theme files to oxid version 6, Let me know if its the theme files issue or something else by looking at the error mentioned.

Please bare with me as i am totally new to this oxid shop, and don’t know how to debug. Thankyou!

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [July 15, 2019, 1:11pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/6 "2019-07-15T13:11:58Z")

</div>

If you have admin access you can set the theme to “flow” in extensions, this should fix the error.

---

<div class="post-metadata">

**Author:** ![Mohsin\_Javaid](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/mohsin_javaid/32/1406_2.png) [@Mohsin\_Javaid](https://forum.oxid-esales.com/u/Mohsin_Javaid)\
**Post date:** [July 15, 2019, 1:12pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/7 "2019-07-15T13:12:55Z")

</div>

@leofonic i ported the theme files , and i got this error:

**OxidEsales\EshopCommunity\Core\Exception\SystemComponentException-OxidEsales\EshopCommunity\Core\Exception\StandardException (time: 2019-07-15 15:11:17): [0]: Function ‘getFbAppId’ does not exist or is not accessible! (OxidEsales\Eshop\Core\ViewConfig)**

it maybe because facebook got removed from oxid v6, should i install it via composer ? as mentioned in the documentation ?

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [July 15, 2019, 1:16pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/8 "2019-07-15T13:16:59Z")

</div>

Yes facebook was removed, i think it’s available as an extension. There might be some other errors in theme, you can check whether it’s theme-related by switching to flow theme and see if the error disappears.

---

<div class="post-metadata">

**Author:** ![Mohsin\_Javaid](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/mohsin_javaid/32/1406_2.png) [@Mohsin\_Javaid](https://forum.oxid-esales.com/u/Mohsin_Javaid)\
**Post date:** [July 15, 2019, 1:21pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/9 "2019-07-15T13:21:07Z")

</div>

I switched to default theme which is ‘flow’ and it removed error. But however i am always redirecting back to this url:

**[http://localhost/oxid\_pe\_6\_one/source/mein-konto/](http://localhost/oxid_pe_6_one/source/mein-konto/)**

Also i am getting these things below the page:

 ![1](https://forum.oxid-esales.com/uploads/default/original/2X/1/186cacb4b5a0a90e758565c7204132ca70597599.png)

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [July 15, 2019, 1:24pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/10 "2019-07-15T13:24:39Z")

</div>

The things below the page is the debug info, to switch off set iDebug to 0 again. Redirection to mein-konto: you might have private sales activated in master settings, core settings, settings, private sales.

---

<div class="post-metadata">

**Author:** ![Mohsin\_Javaid](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/mohsin_javaid/32/1406_2.png) [@Mohsin\_Javaid](https://forum.oxid-esales.com/u/Mohsin_Javaid)\
**Post date:** [July 15, 2019, 1:28pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/11 "2019-07-15T13:28:57Z")

</div>

Yes, private sales was enabled, i disabled that and now i am on shop homepage and i am seeing some products. And okay i’ll turn that iDebug off again that would be great. So is my database migration completed i guess?

---

<div class="post-metadata">

**Author:** ![leofonic](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/leofonic/32/58_2.png) [@leofonic](https://forum.oxid-esales.com/u/leofonic)\
**Post date:** [July 15, 2019, 5:02pm UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/12 "2019-07-15T17:02:02Z")

</div>

Yes all fine!

---

<div class="post-metadata">

**Author:** ![Mohsin\_Javaid](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/mohsin_javaid/32/1406_2.png) [@Mohsin\_Javaid](https://forum.oxid-esales.com/u/Mohsin_Javaid)\
**Post date:** [July 16, 2019, 5:25am UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/13 "2019-07-16T05:25:12Z")

</div>

Thankyou for all the help 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.oxid-esales.com/user_avatar/forum.oxid-esales.com/system/32/4245_2.png) [@system](https://forum.oxid-esales.com/u/system)\
**Post date:** [July 15, 2020, 5:25am UTC](https://forum.oxid-esales.com/t/admin-panel-and-shop-frontend-giving-localhost-500-error/95450/14 "2020-07-15T05:25:12Z")

</div>

Closed on July 15, 2020, 5:25am UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
