• pathana

    (@pathana)


    After we had changed our DNS settings of our domain to point to our dev site we have been working on, we realized things did not work the same as before; if we tried to update anything, we would just get redirected to “wp-admin/edit.php”, or when creating something new like a blog post or a new user, we would get back “An unidentified error has occurred” error message at the top, as well as a number of other things not working correctly. We first found out almost everything wasn’t working correctly when we saw that our contact forms weren’t working, so we had reached out to the support team of our theme, and they had told us that it was because of a server configuration issue. Not sure if this is also related to the “everything else” being broken in the site (which I’m sure it may be however), but what could be wrong here and would could we do to fix this? Thank you!!

Viewing 9 replies - 1 through 9 (of 9 total)
  • bernbe01

    (@bernbe01)

    hey there

    let’s start with a server-config path if thats cool with you

    do you have ssh/panel/ftp access?

    if yes, please access the site’s .htaccess file

    copy the file to .htaccess-TEMP

    make a new blank file and name it .htaccess & place in it these generic wordpress settings:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    (the .htaccess file should be located in the same folder as your wordpress installation, but you may have to select to display hidden files depending on how you are connecting)

    at this point, check the site

    if that doesn’t work, we’ll want to check permissions on files and folders. this is easy to reset if you have ssh access, and many hosts will set good permissions for you with a phone call

    in general, folders should be 755, and files should be 644

    check back in after the htaccess stuff and we’ll come up with some ideas

    Thread Starter pathana

    (@pathana)

    Thank you very much for your help so far!

    The .htaccess already had those lines in them so it already looks exactly like that. The folders are mostly set to 777 and 755 because earlier in the stages of the dev site, things weren’t being allowed to install and such, for example, installing a plugin through the wordpress backend instead of manually installing through FTP. The files are set to 644.

    bernbe01

    (@bernbe01)

    ok, thanks for the info

    next step i would do is temporarily deactivate all plugins
    –> you can do this via ftp by moving the /wp-content/plugins folder to /wp-content/plugin.HOLD

    test and inform!

    thanks!

    Thread Starter pathana

    (@pathana)

    Thank you! I appreciate your help with this very much so far thanks!!

    I had temporarily deactivated all plugins, and unfortunately that still didn’t help with anything.

    bernbe01

    (@bernbe01)

    ok, thats for the info

    with plugins deactivated, please try switching to twenty-fifteen theme temporarily and retest

    are you on wp 4.1.1?

    Thread Starter pathana

    (@pathana)

    Thank you!

    Yes we are on version 4.1.1. I just tried switching themes with plugins deactivated, but no luck. Still saving anything in settings gets redirected to options.php and doesn’t save, as well as trying to update/add new posts/pages and getting redirected to edit.php also with no saves.

    bernbe01

    (@bernbe01)

    cool, thanks for testing

    do you know how to use the chrome console (F12)? if not I would be happy to provide some help, or if you use another browser

    open the console

    please access the last page for editing post right before your redirect

    look for errors in console, paste any you see through to us here

    did you do the update to 4.1.1 automatically or manually (via ftp)?

    Thread Starter pathana

    (@pathana)

    Thanks!

    I did not see any errors in the console besides two lines of CSS styling tips. Also, we automatically updated 4.1.1 automatically.

    bernbe01

    (@bernbe01)

    ok, since .htaccess is clean wp basic lines, plugins are disabled, basic clean theme has been tested, then i think it’s time to try a manual reinstall of the wordpress core files

    to manually update wp 4.1.1

    0. take a backup of your existing system

    1. download the latest wordpress

    2. unzip it locally on your computer

    3. connect to your server using an ftp client, selecting option to see hidden files if available

    4. delete from your server everything in wordpress’s install folder except wp-config.php and wp-content/

    5. upload from the newly unzipped wordpress files all files and folders except wp-content/ (there will not be a wp-config.php in the newly unzip wordpress)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘"An unidentified error has occurred" throughout most of site after DNS change’ is closed to new replies.