• Resolved marin2234

    (@marin2234)


    Hello All,

    Ill do the best I can to describe this.

    Awhile back she said “I want the sidebar removed when someone browse from their phone” after some searches I found a CSS entry that could be done, when mobile was detected, a couple plugins etc. I disabled all plugins, removed all CSS and the sidebar will not come back. Ive gone as far as creating a separate WordPress instance, DB and all. I copied the entire wp-content/themes/anassi theme from the current root directory of the site to another site on the same server (this would validate if the problem is within the code on the theme). When moved over to the new test site with the same working dir from the main site, the sidebar shows up on desktop browser as well as mobile. This concluded to me that i had not modified the code. The wp-config.php was never moved. I decided to move the wp-config.php from the root of the problem site to the test site and sure enough I was able to replicate the problem. I move the test site back to the wp-config.php dedicated to the test site and the sidebar works again on mobile. It seems to me the issue is within the DB someplace.

    Any suggestions on how to track this down? Where within the DB the sidebar is being hidden on mobile. Again I may be wrong but came to this conclusion because on the test site wp-config.php sidebar works and when I copy the main sites wp-config.php to the test site dir, problem is replicated.

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter marin2234

    (@marin2234)

    Correction, I copied the entire /var/www/avelynelane.com directory of the entire WordPress install (themes plugins and all) to the test site, not just the wp-content/themes.

    Replicated problem, that is when I found that moving the wp-config.php file from the test site backup dir, to the test site dir that was copied from avelynelane.com reproduced the issue.

    How are you moving the site? Are you using a backup/restore plugin and moving the database as well? WordPress is MUCH more than just a folder full of files. You can not just copy the root folder from one location to another.

    wp-config.php tells WordPress where the database is and what the username and password to retrieve the content.

    The WordPress folder just contains the application and the theme folder. The content itself is ALL located in the database. This is obviously where your error is located. In the content in the Database.

    Thread Starter marin2234

    (@marin2234)

    @hudsonvalleywebdesign

    Thats what im saying. The issue is within the DB as the folder contains the site and the DB contains the content. If i move the entire directoy and use the testDB the sidebar works, with the same directory if I replace the wp-config.php with the sites wp-config.php that is an issue, only pointing to the issue DB, problem is replicated. 100% agree the issue is within the DB. My question is where to look in the DB to fix this issue.

    I tried to explain that by moving the wp-config.php back and forth it is fixed/broken only by moving the wp-config.php which points directly to the DB being the culprit.

    How did I move the site;

    MAIN SITE:
    /var/www/mainsite/<CONTENTS OF ALL WP DATA HERE>

    TEST SITE (SAME SERVER)
    /var/www/testsite/<CONTENTS OF ALL WP DATA HERE>

    mv /var/www/testsite /var/www/testsite_10112017
    cp -R /var/www/mainsite /var/www/testsite

    Tested that testsite.com had the same issue as mainsite.com once that was identified. I did this;

    mv /var/www/testsite/wp-config.php /var/www/testsite/wp-config.php-broken
    cp /var/www/testsite_10112017/wp-config.php /var/www/testsite/wp-config.php

    Tested site again, issue was not there, proving that the original testsite/wp-config.php from a fresh install pointing to testsiteDB did not contain the same issues with sidebar that maintsiteDB presented.

    Where in the DB can I look for these sidebar issues?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘sidebar help’ is closed to new replies.