slaFFik / bp-feeds

BuddyPress Feeds - Allow your members to import (RSS) feeds of their external blogs into Activity Directory
GNU General Public License v3.0
7 stars 2 forks source link

Fatal error when installing plugin #65

Closed nickdanks closed 8 years ago

nickdanks commented 8 years ago

Fatal error: Call to undefined function get_current_screen() in /homepages/12/d271869397/htdocs/clickandbuilds/Community/wp-content/plugins/bp-feeds-develop/core/admin.php on line 388

slaFFik commented 8 years ago

Wow. How is your WordPress installed? WPMS or ordinary WP? Where and how BuddyPress is activated?

nickdanks commented 8 years ago

Its installed through our hosting and buddy press is installed as a plugin. http://community.distinctivegroup.co.uk/

nickdanks commented 8 years ago

Ive had to take it down now as it broke the site with a white screen.

slaFFik commented 8 years ago

No, I'm asking - do you have WordPress MultiSite. If yes - BuddyPress is activated Network wide or on a specific site of your network?

nickdanks commented 8 years ago

Ok, its on a specific site to our domain.

slaFFik commented 8 years ago

Please confirm:

  1. you have WordPress MultiSite with several sites inside your network.
  2. BuddyPress and BP Fees plugins are both activated on a specific site inside a network (not network-wide)
nickdanks commented 8 years ago

Please confirm:

you have WordPress MultiSite with several sites inside your network.

No this is just one website associated with the domain and not a multisite

BuddyPress and BP Fees plugins are both activated on a specific site inside a network (not network-wide)

Buddy Press is installed but im not sure what BP Fees is as i dont have this installe

slaFFik commented 8 years ago

BP Feeds is the plugin you are writing in repository in. Scroll to the top of the page.

nickdanks commented 8 years ago

ok no that is not installed as i get the fatel error and it breaks the website.

nickdanks commented 8 years ago

Any thoughts? Thanks

slaFFik commented 8 years ago

No thoughts currently. I will test the plugin today in the evening and will try to reproduce/fix if possible.

nickdanks commented 8 years ago

ok thank you very much.

hughankers commented 8 years ago

Hi, I've been trying out this plugin on a trial version of a Wordpress/Buddypress site I'm developing and it worked perfectly well at first then after a short while I had reason to click the "Customise" link on my site's admin bar and got the following fatal error message:

Fatal error: Call to undefined function get_current_screen() in /home/example1234/public_html/wp-content/plugins/bp-feeds-develop/core/admin.php on line 388

(where "example1234" represents my real home directory name) I was able to recover by going back one page on my browser, then I was able to navigate normally to the "installed plugins" page and de-activate the plugin.

My site is a single install of Wordpress 4.4.2. I'd added three different feed urls to three unique member profiles, which had all successfully imported posts from the target sites (all Tumblr blog RSS feeds in the format http://example.tumblr.com/rss ) and the plugin settings were all default I really like this plugin and if you can get it to work reliably I'll definitely install it on the production version of my site, but in the meantime, I'd be happy to test it on my trial site and report any errors or unexpected behaviour.

hughankers commented 8 years ago

Hi slaFFik, I have a little further information about this fatal error.

I decided to re-install the plugin for further testing and it seems to work quite normally except when attempting to access the theme customization editor. Every other method of navigating my site seems perfectly OK, including logging in and out, navigating through all the admin dashboard links and other plugin settings, navigating between various pages on the site's front end via menu links etc etc.

It would seem like it's only when I try to access the customizer that the error occurs. You probably already know this, but I've only just realised that the "Customize" link on the adminbar, is not a static (fixed) url. Wordpress automatically appends the url of the current screen to the end of the Customize page's url... Obviously in order to return you to the page you came from before using the Customizer.

For example on my site media.lioar.com. If I'm currently on my own user profile page and hover my mouse over the Customize link, the target url looks like this...

http://media.lioar.com/wp-admin/customize.php?url=http%3A%2F%2Fmedia.lioar.com%2Fmembers%2Flioar%2F

I don't know enough about how Wordpress generates dynamic urls like that to hazard a guess if that's causing the error, but it does seem like it may have something to do with it.

hughankers commented 8 years ago

Just to add to my last comment. I tried clicking that customize link to test it after publishing the comment and of course I got exactly the same fatal error message as before. I also tried clicking it after logging out of my site and this time it just redirects to the /wp-login page where I was able to log in successfully using my GitHub account.

If it would help you to have admin access to my site, to recreate the error yourself and see how my site is configured eg which other plugins are installed etc. I'd be happy to let you do that. My site is just a test version, with no other registered users and I have recent backups, so no big deal if it breaks.

If you want to do that, just click the link in my previous comment to take you to the login page and then click the GitHub icon to login. As soon as I see that you've joined, I'll upgrade your account to Administrator status so you can poke around in the admin area etc.

slaFFik commented 8 years ago

Found the problem. Will update the repo today.