Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Output on site migration #101

Closed
landwire opened this issue Feb 28, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@landwire
Copy link

commented Feb 28, 2015

Hi there,
I migrated my site online (which was just locally on my computer) and suddenly get the below printed right after the body tag with all the body classes in it. Obviously it also appears in the frontend and admin. Could it be related to the symlink? No idea really.

The path below is to the website where it was locally before I moved it online. So, the below only prints in the online version, the offline version works fine. Not sure if this is a bug?

"/Volumes/Work/sites/2014a.landwire.net/wp-content/plugins/query-monitor/wp-content/db.php"

Even after I deleted the plugin the message still remains on both admin and front-end.
Thanks,
Sascha

@johnbillion

This comment has been minimized.

Copy link
Owner

commented Feb 28, 2015

Are you also seeing a warning about the db.php symlink at the top of the 'Queries' section?

@landwire

This comment has been minimized.

Copy link
Author

commented Feb 28, 2015

Yes, I see this there:
Extended query information such as the component and affected rows is not available. Query Monitor was unable to symlink its db.php file into place. See this wiki page for more information.

But after I deleted the plugin, the message is still there.

@johnbillion

This comment has been minimized.

Copy link
Owner

commented Feb 28, 2015

Yeah what's happened is the symlink has broken with the site move. You should deactivate and reactivate QM, or follow the instructions in that link.

Note that there's nothing that QM can do about this because it's an OS level thing. Any symlink that gets moved in this manner will break (hence the message I added in #5).

@landwire

This comment has been minimized.

Copy link
Author

commented Feb 28, 2015

Sorry to open this again, but how do I get rid of the:
"/Volumes/Work/sites/2014a.landwire.net/wp-content/plugins/query-monitor/wp-content/db.php"
when the plugin is deleted and not active anymore?

Or is it only showing this message when the website is viewed from my computer? I just do not know where the text comes from....

@johnbillion

This comment has been minimized.

Copy link
Owner

commented Feb 28, 2015

The text that's showing is the contents of the broken symlink (it looks like your OS is treating it as a plain text file instead of a symlink).

It's located at wp-content/db.php on your new site. Delete the file and the text will go away :)

@landwire

This comment has been minimized.

Copy link
Author

commented Feb 28, 2015

Ok, thank you very much! Maybe for anybody with the same issue:
Deleting the file in wp-content/db.php and then de- and re-activating the plugin made Query Monitor work absolutely fine again in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.