# 500 server error on new theme

**URL:** <https://forum.pinegrow.com/t/500-server-error-on-new-theme/2265>\
**Category:** Pinegrow WP\
**Created:** [October 3, 2018, 4:13am UTC](https://forum.pinegrow.com/t/500-server-error-on-new-theme/2265 "2018-10-03T04:13:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![adinezza](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adinezza](https://forum.pinegrow.com/u/adinezza)\
**Post date:** [October 3, 2018, 4:13am UTC](https://forum.pinegrow.com/t/500-server-error-on-new-theme/2265/1 "2018-10-03T04:13:50Z")

</div>

I recently created a WP theme using the WP blocks. I made some mods to the css, nothing too crazy, but now when I upload and activate the theme, I am getting a 500 server error. I did recently upgrade to Pinegrow 4.911. Is anyone having issues with the latest version of PG?

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [October 3, 2018, 7:41am UTC](https://forum.pinegrow.com/t/500-server-error-on-new-theme/2265/2 "2018-10-03T07:41:51Z")

</div>

Without anymore details (hosting provider, transfer app and more …), I can only guess the transfer went wrong but I don’t see any particular relation with Pinegrow.

---

<div class="post-metadata">

**Author:** ![adinezza](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adinezza](https://forum.pinegrow.com/u/adinezza)\
**Post date:** [October 3, 2018, 11:47am UTC](https://forum.pinegrow.com/t/500-server-error-on-new-theme/2265/3 "2018-10-03T11:47:40Z")

</div>

I use Dreamhost as the provider and FileZilla as the ftp app. There weren’t any failed transfers and I did a complete transfer of the exported Wordpress folder.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [October 3, 2018, 1:23pm UTC](https://forum.pinegrow.com/t/500-server-error-on-new-theme/2265/4 "2018-10-03T13:23:28Z")

</div>

Maybe you should try to install the theme on a local setup first and check if the theme is ok. (that’s the standard way to proceed for a successful experience).

see: [https://pinegrow.com/docs/wordpress/10-things-you-should-consider-before-starting-to-create-a-wordpress-theme-with-pinegrow-wp/](https://pinegrow.com/docs/wordpress/10-things-you-should-consider-before-starting-to-create-a-wordpress-theme-with-pinegrow-wp/)

> **[500 Internal Server Error](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500)**
>
> The HyperText Transfer Protocol (HTTP) 500 Internal Server Error server error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.

---

<div class="post-metadata">

**Author:** ![gzirfas](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@gzirfas](https://forum.pinegrow.com/u/gzirfas)\
**Post date:** [October 8, 2018, 3:01pm UTC](https://forum.pinegrow.com/t/500-server-error-on-new-theme/2265/5 "2018-10-08T15:01:31Z")

</div>

> **[Getting a 500 Internal Server Error? Here's What to Do](https://www.lifewire.com/500-internal-server-error-explained-2622938)**
>
> Learn about the 500 Internal Server Error (aka HTTP 500 error), which is a generic error suggesting a problem with the website's server.

As eranoud posted in this thread, it is fairly easy and advisable to test locally first to make sure your themes work properly before dealing with the server issues.

---

<div class="post-metadata">

**Author:** ![adinezza](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adinezza](https://forum.pinegrow.com/u/adinezza)\
**Post date:** [October 8, 2018, 5:31pm UTC](https://forum.pinegrow.com/t/500-server-error-on-new-theme/2265/6 "2018-10-08T17:31:11Z")

</div>

Ok, so this weekend I tested on a local server and was able to figure out that I mistakenly put a hyphen in the theme slug name.

I manually updated functions.php and replaced the hyphen with an underscore and the theme works.

Now, the issue is, even though I changed the slug name in pinegrow, it must be cached somewhere because when I re-export the theme, it reverts back to the hyphenated name in functions.php. I tried the clear cache in the File menu, but that didn’t seem to work.

Does anyone know how to correctly update the slug name for a theme?

---

<div class="post-metadata">

**Author:** ![Rob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rob/32/9_2.png) [@Rob](https://forum.pinegrow.com/u/Rob)\
**Post date:** [October 12, 2018, 9:53am UTC](https://forum.pinegrow.com/t/500-server-error-on-new-theme/2265/7 "2018-10-12T09:53:01Z")

</div>

@adinezza try temporarily moving the functions.php file to a different place outside of you export folder then re-export. This way a new functions.php file will be created instead of overwriting/updating existing functions.php

Hope this helps.
