WordPress.org

Forums

WP2Cloud
More plugins not supported by WP2Cloud (20 posts)

  1. chensihai
    Member
    Posted 2 years ago #

    This plugin is kind of revolution solution, but I also find more plugins are not supported by this plugin.
    http://wordpress.org/extend/plugins/bp-album/
    http://wordpress.org/extend/plugins/wp-post-thumbnail/

    Welcomed to suggest how to make WP2Cloud to support more plugins like above.

    Thanks,

    http://wordpress.org/extend/plugins/wp2cloud-wordpress-to-cloud/

  2. Artem Livshits
    Member
    Plugin Author

    Posted 2 years ago #

    Thank you for report!

    We will take a look at these plugins and will try make WP2Cloud compatible with them.

  3. Per Soderlind
    Member
    Posted 2 years ago #

    I might have the same problem with another plugin, debug bar tells me that the database table can't be created.

    I also tried to create the table using the debug bar sql console, with out any luck:

    CREATE TABLE wp_tla_data (
                      id int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
                      post_id int(10) UNSIGNED NOT NULL DEFAULT '0',
                      url VARCHAR(255) NOT NULL,
                      text VARCHAR(255) NOT NULL,
                      before_text VARCHAR(255) NULL,
                      after_text VARCHAR(255) NULL,
                      xml_key VARCHAR(255) NULL,
                      PRIMARY KEY (id),
                      INDEX post_id (post_id),
                      INDEX xml_key (xml_key)
                   ) AUTO_INCREMENT=1;

    in my.cnf, default-storage-engine=ClouSE

  4. Artem Livshits
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Per,

    Thank you for report!

    ClouSE doesn't currently support setting the initial auto increment value when creating a table. We expect to add support for that soon.

    As a workaround, you can create this table without setting auto-increment to 1, like this:

    CREATE TABLE wp_tla_data (
                      id int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
                      post_id int(10) UNSIGNED NOT NULL DEFAULT '0',
                      url VARCHAR(255) NOT NULL,
                      text VARCHAR(255) NOT NULL,
                      before_text VARCHAR(255) NULL,
                      after_text VARCHAR(255) NULL,
                      xml_key VARCHAR(255) NULL,
                      PRIMARY KEY (id),
                      INDEX post_id (post_id),
                      INDEX xml_key (xml_key)
                   );
  5. Per Soderlind
    Member
    Posted 2 years ago #

    I can confirm that creating table without auto_increment=1 worked.

    Thanks,
    PerS

  6. chensihai
    Member
    Posted 2 years ago #

    We expect to get the full benefit of ClouSE.
    For the not supported plugins, will you suggest users to wait, or encourage users to develop the support function themselves--do you have any guideline for this.

    Thanks,

    Simon Chen

  7. Artem Livshits
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Simon,

    We'd definitely appreciate contribution in any form. If you can get more data about what doesn't work (like the error messages that you see, the actions that result to problems, etc.) it may help us to see if this is an issue that we're already working on or something new.

  8. chensihai
    Member
    Posted 2 years ago #

    Thank you for your response.
    Those two plugins are still working with no error. But they just store pictures locally, stead of storing pictures on S3.

  9. Artem Livshits
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Simon,

    We were able to add support for http://wordpress.org/extend/plugins/bp-album/. We will release an updated version of WP2Cloud soon.

    We took a look at http://wordpress.org/extend/plugins/wp-post-thumbnail/. Unfortunately, this plugin does not use the core Media Library functions nor does it support any hooks for other plugins to hook into. The plugin seems to be abandoned (last updated in 2008!), but if anyone would want to take ownership of the plugin we'd be more than happy to work with the owner to add hooks into the WP post thumbnail plugin. For now, WP2Cloud won't be able to handle pictures created with WP post thumbnail.

  10. Artem Livshits
    Member
    Plugin Author

    Posted 2 years ago #

    Just released WP2Cloud 1.3.4 that supports BP-album.

  11. chensihai
    Member
    Posted 2 years ago #

    Hi Artem,
    Thank you very much to response and provide solution so quickly.
    BP-ALBUM is the most concern, as for a user facing website, the pictures storage could increase quite quickly. It's very glad that you provide solution for BP-ALBUM.

    For wp-post-thumbnail, we'll see if we can do the migrate to support hooks, then contact you in the feature.

    One related question is, as the picture is in S3 now, and some picture might need to follow private policy. Is it possible to provide some solution/suggestion to allow only authorized users to see the pictures.

  12. Artem Livshits
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Simon,

    Is it possible to provide some solution/suggestion to allow only authorized users to see the pictures.

    If you're concerned about other sites hotlinking to your pictures, it is possible to prevent hotlinking with S3 bucket policies. See this blog for more info.

  13. chensihai
    Member
    Posted 2 years ago #

    Hi Artem,
    Thank you for your suggestion. My consider situation is more strict than hotlinking.

    I am thinking is it possible to update S3 API to allow only certain user to see the picture.

    As I test, all the delete picture functions, media/bp-avatar,bp-album, the pictures are not really removed after delete it.

    It would be a bugs, not feature?

  14. Artem Livshits
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Simon,

    I am thinking is it possible to update S3 API to allow only certain user to see the picture.

    The picture URLs have a 256-bit random component, which means that it's practically impossible to access a picture without knowing its URL. So by controlling who can access the URL you can control who can get the picture.

    As I test, all the delete picture functions, media/bp-avatar,bp-album, the pictures are not really removed after delete it.

    The bp-album plugin 0.1.8.14 needs a patch in order for picture deletions to work properly. The dev version of db-album at github already has the fix.

  15. chensihai
    Member
    Posted 2 years ago #

    Hi Artem,
    Sorry, your answer is not too the point. I verified it again, after the file is deleted from WP, no matter Media,BP-Avatar or BP-Album, the file is still exists on S3, and people can access the file with the old picture url.

  16. Artem Livshits
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Simon,

    We have 1 hour delay for deletion to account for things like page caching, for example. Even if you delete images and update the page to not use the image, a cache may still have an old version of the page (say it expires every 5 minutes) that refers to old images. As we keep deleted images around for an hour, users who hit cached pages will be able to get the images too.

    So if you check after an hour or so, the images should get deleted. If this doesn't happen, send an email to support (at) oblaksoft (dot) com so that someone could take a look.

    We'll add this info to the FAQ.

  17. chensihai
    Member
    Posted 2 years ago #

    Hi Artem,
    I approve what you said, the deleted images will disappear after a while.

    As you commented http://wordpress.org/extend/plugins/wp-post-thumbnail/ is an unsupported plugin, we found another solution to replace wp-post-thumbnail,
    http://wordpress.org/extend/plugins/post-thumbnail-editor. It works well with wp2cloud well mostly, but when crop a picture, it won't produce new picture like the way without wp2cloud.

    If you can add post-thumbnail-editor to be full support by wp2cloud, it would be great for the users.

  18. chensihai
    Member
    Posted 2 years ago #

    Hi Artem,
    In fact, http://wordpress.org/extend/plugins/post-thumbnail-editor work now after I disable and enable wp2cloud plugin, so please ignore my above request.

    Thanks

  19. Artem Livshits
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Simon,

    Thank you for the report!

    We tested the post-thumbnail-editor plugin and it looks like that it needs to call a couple hooks in order to work with WP2Cloud. We'll follow up with the developers of the plugin.

  20. Artem Livshits
    Member
    Plugin Author

    Posted 2 years ago #

    To make the post-thumbnail-editor plugin work, update WP2Cloud to 1.3.5 and apply the following patch to post-thumbnail-editor 2.0.1:

    --- a/wordpress/wp-content/plugins/post-thumbnail-editor/php/functions.php
    +++ b/wordpress/wp-content/plugins/post-thumbnail-editor/php/functions.php
    @@ -400,7 +400,7 @@ function pte_resize_images(){
     	// *** common-info
     	$dst_x          = 0;
     	$dst_y          = 0;
    -	$original_file  = get_attached_file( $id );
    +	$original_file  = _load_image_to_edit_path( $id );
     	$original_size  = @getimagesize( $original_file );
     	$uploads 	    = wp_upload_dir();
     	$PTE_TMP_DIR    = $uploads['basedir'] . DIRECTORY_SEPARATOR . "ptetmp" . DIRECTORY_SEPARATOR;
    @@ -553,15 +553,15 @@ function pte_confirm_images($immediate = false){
     		}
    
     		// Delete/unlink old file
    -		if ( isset( $old_file )
    -			&& file_exists( $old_file ) )
    +		if ( isset( $old_file ) )
     		{
     			$logger->debug( "Deleting old thumbnail: {$old_file}" );
    -			unlink( $old_file );
    +			@unlink( apply_filters( 'wp_delete_file', $old_file ) );
     		}
    
     		// Move good image
     		$logger->debug( "Moving '{$good_file}' to '{$new_file}'" );
    +		wp_mkdir_p( dirname( $new_file ) );
     		rename( $good_file, $new_file );
    
     		// Update metadata

    A pull request with the patch is submitted to the PTE plugin dev, see https://github.com/sewpafly/post-thumbnail-editor/pull/62.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP2Cloud
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.