Skip to:
Content
Pages
Categories
Search
Top
Bottom

Error Activating Widgets

  • Avatar of johngieser
    John
    Member

    @johngieser

    This looks to be a great plugin! Ideas like this really let BuddyPress shine and differentiate itself from other social network platforms.

    After installing the plugin (WP 3.1/BP 1.2.8, network install, network activated) when I try to activate a widget via the BPMH Manager, I get an error that it couldn’t connect to the server and couldn’t unzip, on that same page, I am then presented with the FTP connection form. For security reasons I do not have FTP or SFTP enabled on my server. I use SSH to connect to the back end and SCP if I need to transfer files. Is there another option to activate the widgets? I have unzipped the files in bp-my-home/zip-widgets and that didn’t help.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Avatar of imath
    imath
    Moderator

    @imath

    Hello,
    This is what the plugin do when Install this widget link is clicked :
    it unzip files in /wp-content/uploads/bpmh-widgets/
    so you first need to make sure this folder exists
    if not create it and then move the content of the bp-my-home/zip-widgets/ folder in wp-content/uploads/bpmh-widgets/

    Hope it will help you to make it work.
    Have a nice sunday.

    Avatar of johngieser
    John
    Member

    @johngieser

    Thanks for the fast reply, @imath. I think there must still be a step missing. I’ve created uploads/bpmh-widgets in wp-content and copied the zip-widgets *.zip files there. I unzipped them and even left the zip files there, just in case. It still appears that no widgets are active and trying to activate them, of course, brings up the FTP connection form.

    Is there a database flag that gets set when a widget is activated?

    Avatar of imath
    imath
    Moderator

    @imath

    I think you must play with the rights of the folder /wp-content/uploads/* because i think it may be the cause of the problem.
    in uploads/bpmh-widgets delete the zip files if you put them there, only the unzip files are to be there

    in bp-my-home/zip-widgets delete the zip files

    And when a widget is activated, then data are stored in wp_options.

    I’m sorry, it’s really hard to figure what the problem is.. i think it’s because of the rights of uploads folder. When you write a post how do you upload images ?

    Avatar of johngieser
    John
    Member

    @johngieser

    I got it! When I upload pictures and other media to blogs, it goes into a wp-content/blog.dir//files. I think that’s the default folder structure for WPMU. I took a look inside of the buddypress blog’s files directory and saw the bpmh-widgets folder just begging me to put stuff into it!

    Thanks for your help, imath!

    Avatar of johngieser
    John
    Member

    @johngieser

    that folder structure should be `wp-content/blog.dir//files`, Anyway, thanks again for the help and the awesome work on your plugin. It is working perfectly and I am excited to hear the feedback from my users.

    Avatar of imath
    imath
    Moderator

    @imath

    Interesting. I need to reproduce this to understand.
    Can you tell me what version of WordPress you’re using ?
    And on what blogid BuddyPress is activated ?

    Anyway, i’m glad you succeed to make it works on your configuration. FYI, I had a bug on v1.2, make sure to upgrade to 1.2.1 or, if you dont want to redo all your settings to comment line 21 of bp-my-home.php like this :
    `//define ( ‘BP_DEFAULT_COMPONENT’,BP_MYHOME_SLUG);`

    Avatar of johngieser
    John
    Member

    @johngieser

    Thanks. I’m on WP3.1 and BP 1.2.8. I’ve been using WPMU since 2.4 or so and have BP activated on Blog ID 1. I believe the directory structure I described above is (or was) the standard path for WPMU blog-specific content upload folders. Thanks for the heads up on BPMH 1.2.1. If I could figure out how to adequately convey a bow and flourish across the Internet, I would.

    Avatar of imath
    imath
    Moderator

    @imath

    ;) Thanks a lot. Have a nice time.

    Hai imath,

    i have same problem,
    the error noticed : Please make sure folders bpmh-widgets and bpmh-widgets-temp exist in folder /wp-content/uploads
    but i already create folder like bpmh-widgets and bpmh-widgets-temp.

    My WordPress version : 3.1 buddypress 1.2.8

    How to install widgets

    Avatar of imath
    imath
    Moderator

    @imath

    Hi, it seems that if you upgraded from WPMU to WP 3.1 then the upload dir is blogs.dir/1/files/, so try to create the 2 folders there.

    Avatar of noizeburger
    noizeburger
    Participant

    @noizeburger

    I had similar problems. Working with BP 1.2.8 and WP 3.1 multisite. The paths are correct, the files were there, but nothing to activate. The problem was: the zip-files are zipped in the wrong way (folder structure unzipped was: bpmh-bkmks/bpmh-bkmks/somefiles – but it has to be bpmh-bkmks/somefiles), so wp can’t unzip them – I unzipped all widgets locally, deleted the DS.store (they won’t be needed) files and uploaded the folders to the wp-content/uploads/bpmh-widgets folder, so that finally I have this structure: wp-contents/uploads/bpmh-widgets/bpmh-bkmks/somefiles. Also deleted the zip-files in the plugin-directory. Now it seems to work.

    Avatar of noizeburger
    noizeburger
    Participant

    @noizeburger

    @imath I have also used wpmu earlier – if someone has updated in the right way from 2.9.x to 3.0, the folder-structure also has changed – i.e. with another update to 3.1 there shouldn’t be any problems with wrong paths.

    Avatar of imath
    imath
    Moderator

    @imath

    @noizeburger thks for your posts to solve the trouble.

Viewing 13 replies - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.