Git Product home page Git Product logo

dreamspeed's People

Contributors

ipstenu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dreamspeed's Issues

Cleanup Script

This is not an uninstaller, this will be a separate thing. It needs to do the following:

  • Edit posts back to non DreamSpeed URL
  • Reset options (easy)

Existing media cron job doesn't run

After starting the routine to upload existing media - it ran the first time - but it hasn't restarted. It has been about 2 hours now and there appears to be no restart of the routine by itself.

Is there anything I should check to see if I can clear this issue? I believe it is supposed to restart automatically hourly.

DreamObjects and DreamSpeed URLs

Please help,
we have set up CDN following the instructions from DreamHosts site (see screenshot):
https://www.dropbox.com/s/dczbmfqbqx2g5a5/Screenshot%202016-09-13%2017.31.54.png?dl=0
We have done everything from the first step to the last.
However, our dreamobjects traffic is measured, but not dreamspeed cdn (take a look:)
https://www.dropbox.com/s/z2qg6y8omj0z7j7/Screenshot%202016-09-13%2017.33.25.png?dl=0
this is what we got from DH customer support:
https://www.dropbox.com/s/hqwq2jo65tnqpbt/Screenshot%202016-09-13%2017.34.26.png?dl=0

Can you please assist?
This is how our plugin is set up:
https://www.dropbox.com/s/o1ek6w8x2hz9ylc/Screenshot%202016-09-13%2017.35.15.png?dl=0

please help.
thanks.

Multisite Support

Realizing you are working on this and it is coming along nicely ?? ;)

I was wondering if I would also be able to use it on a multisite setup?

Thanks. Lee

New uploads no longer being added to Dreamspeed

I thought for a while this was perhaps a transient issue because of network timeouts or something. I can definitely say it is not random. When I upload new photos, they load on the server, but they don't show a load to Dreamspeed and they don't show a URL on Dreamspeed. It was working, then it stopped. I thought perhaps it was because of issues with the theme I was using at the time - but I changed the theme for a newer lighter theme (Hueman) - and the behavior hasn't changed. I also tried resetting the keys.

But - I can use the upload existing media function to push them up to Dreamspeed.

Multisite: Fatal error on activation and broken paths

I really, really, hate to say it after all your work on this, but when I try to activate I get:

Plugin could not be activated because it triggered a fatal error.

This error was reported:
Warning: require_once(/home/domain/domain.com/wp-content/plugins/dreamspeed-master/vendor/aws/Symfony/Component/ClassLoader/UniversalClassLoader.php) [function.require-once]: failed to open stream: No such file or directory in /home/domain/domain.com/wp-content/plugins/dreamspeed-master/vendor/aws/aws-autoloader.php on line 17

Fatal error: require_once() [function.require]: Failed opening required '/home/domainl/domain.com/wp-content/plugins/dreamspeed-master/vendor/aws/Symfony/Component/ClassLoader/UniversalClassLoader.php' (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/domain/domain.com/wp-content/plugins/dreamspeed-master/vendor/aws/aws-autoloader.php on line 17

(the domain is obscured with "domain" above)

Not able to upload to CDN, Site usage goes up very high

My install updated for the new release, everything seemed fine until I tried to upload more photos. The first 2 tries did not go to the CDN, the path showed them uploading locally instead.
Usage on the site (I am on multisite) went up very high and I was not able to load the dashboard again until I renamed the plugin file.

I don't know what is happening, but it appears there is an issue, perhaps with the new version and multisite? I'm guessing. I don't really know but it sounds logical. I checked the CDN and it is true, the photos are not being uploaded. There are no other paths on the CDN so it seems it just plain isn't saving to the CDN at all. Any ideas?

I want to go back to the last full release, but I don't seem to be able to find a full commit. What should I use? I would really like to get back to where I was so I can update my site.

Copy files of specified file types to DreamSpeed as they are uploaded to the Media Library

Howdy.

Thank you for putting this plugin together. :)

Does it seem plausible that others would benefit from adding a feature to this plugin that allows the user to enable auto-transferring certain file types uploaded to the media library? Ex: a user uploads a PDF and this plugin would upload it to the CDN and update refs to said PDF, whereas when the user uploads a JPEG nothing is moved to the CDN.

My use case (read if you desire) :
A site I am working on has need of moving audio, video, and documents to DreamObjects--we will not be using the CDN feature (aka, DreamSpeed) of DreamObjects. Though we must use DreamObjects for these file types, we do not want to sacrifice some nice features of our current hosting plan by moving all our images, css, js, etc. to DreamObjects. Thus, we have need of only uploading certain file types. Finally, this upload needs to be transparent to the user rather than giving them direct access to the DreamObjects buckets, teaching them additional steps to uploading to DreamObjects, teaching them how to figure out the new URL for the uploaded file(s), and relying on them to actually do this for every audio, video, or document file.

-sambo

Different Upload Message

Different message for uploading media vs updating plugin settings.

Right now both use wp_redirect( 'admin.php?page=' . $this->plugin_slug . '&updated=1' ); but that should adjust based on what's being set just a little.

Fix srcset URLs

Right now if you view source, you'll notice something like this:

<img class="alignnone size-medium wp-image-1022" 
src="https://dreamspeedplugin.objects.cdn.dream.io/wp-content/uploads/2013/03/featured-image-horizontal-300x155.jpg" 
alt="Horizontal Featured Image" width="300" height="155" 
srcset="https://dreamobjects.dev/wp-content/uploads/2013/03/featured-image-horizontal-300x155.jpg 300w, 
https://dreamobjects.dev/wp-content/uploads/2013/03/featured-image-horizontal.jpg 580w" 
sizes="(max-width: 300px) 85vw, 300px">

Obviously those URLs should all be the dream.io one.

I could check "is this image uploaded to the cloud? Yes? Assume cloud URLs!" but the issue is that I have to be sure that the image resize is on the cloud. And I can't always be sure of that. There are common scenarios (changing image sizes, slider plugins, etc) that would break. So right now the failure is to be local.

Multisite - paths to images

Ok - there seems to be a problem. Likely it is my setup someway so let’s get specific.

I have a multisite installation on a primary domain - wpbilingual.com
I have a site hosted on the installation - memoriafoto.com - this is the photo site I want to migrate the photos from to the CDN

I have deleted and uploaded the current version (an hour old now) by FTP
I have set the bucket and the path wp-content/uploads/sites/2/ memoriafoto is site 2
I have set the alias to fotos.memoriafoto.com - same as the alias I set in the panel (checked)

When I upload a photo to a draft post with the media uploader - I get a broken image icon in the media center interface.
If I go ahead and push that image to the post - I get a URL like this http://fotos.memoriafoto.com/wp-content/uploads/sites/2/2014/04/2014-04-11-16.jpg
That URL doesn’t work independently so I know it is wrong - but I don’t know how or why.

Photos are uploading to Dreamspeed properly. The originals are still on the server.

Ideas?

Media previews (thumbnails) no longer showing in Media Center or Featured Image

After the fix applied with Issue #15 - I can no longer see previously uploaded photo thumbnails in the Media Center and Featured Images do not show in theme for a limited number of posts.

I tried resetting the ones that are not showing - but I still get a broken image link. I'm not sure what is happening. Is it failing to show the server copy of the thumbnails? or is it failing to pull the correct image size off DreamSpeed. I really don't know enough to know. I just know that applying this change has broken featured images and thumbnails.

I can report that this change is consistent with itself. In other words, a post put in place by this version, shows the featured image in the theme properly and the thumbnails for the photos in this version do show in the media center.

So just to review the situation in brief:

  • New images uploaded from the version after Issue #15 work as expected. The images are sent to the CDN. The URLs are proper. The thumbnails show in the media center.
  • Images loaded from the change before this, show as broken images in the media center. Their thumbnails do not show in the theme. Removing the featured image and resetting it does not change things.
  • Images loaded from the version two revisions ago, show proper featured image behavior, but their thumbnails do not show in the media center.

**Update
Since in my case there were only two posts that were involved in the "featured image not showing" problem introduced with the previous change - I went ahead and tried uploading a new copy of the images for adding a featured image back to the posts involved. They are showing properly now. So, for me, the only problem remaining is the lack of thumbnails showing in the media center now for all the images uploaded to the CDN before this last change. This may have to be a very specific, one off fix for this problem. I'm leaving the second bullet in my review just to show the history so you can trace the problem.

Sorry, I hate throwing more issues. How about I just change my role to QA.... j/k

Existing media

I have a wordpress blog that I know would benefit greatly from using Dreamspeed CDN to serve images. However, I have a large number of existing images and I would really like to see this plugin provide a solution for moving them. I know it is in the roadmap from what I read, but I don't know how long it might be before it is available.

I know this service is based on Fastly and I have considered using their service directly as they have a Wordpress plugin that will move existing images to the CDN. But I would really rather keep all my services together on Dreamhost.

Alternatively - If it is not on the near horizon - I would consider moving the images to the CDN but I don't know how to do that to assure they will be recognized by Wordpress

Migrating existing media on mapped domains does not properly replace URLs like it does on subdomains/subfolders/etc

I started to enter this and somehow the issue disappeared so I couldn't edit it. But I have better information on what is happening now - I just don't understand it.

On my site (memoriafoto.com) I have the plugin activated. I have uploaded the media to a new post with the plugin activated. The URLs of the photos are as I expect using the fotos.memoriafoto.com alias for the Dreamspeed bucket.

However, photos that have been migrated have the native media center URL in the post they are attached to but when I look at the media in the media center the permalink shows the alias of the CDN bucket.

So what I don't understand is what is happening. I think the photos are actually being served off the CDN but I don't understand exactly how it works. Is the URL in the post actually being routed to the CDN by the permalink in the media center?

Confused....

Re-upload/Scan Existing Media Option

First off, great job! I'm having a blast playing around with it. :-D

I've got all of my content transferred over (including unattached media), but I came across a feature that I would like: some kind of "re-upload/scan existing media" button (as a third option) that, instead of scanning for non-uploaded media, scans for media that has already been uploaded but was previously unattached and then updates posts and replaces existing links with CDN links to the uploaded media.

Multisite: Dashboard doesn't show

I have set up a bucket, set an alias for the domain and activated it for the CDN. I have uploaded the plugin and activated it. I can see a column in the Media center for the CDN so I know it is activated. But...

I don't see any place to configure the plugin, authenticate (key and secret key) and point it to the CDN. I don't see any configuration at all. I've looked in tools, settings, dashboard features. Nothing. As I understand it - there is supposed to be some way to activate it to start moving content to the CDN so there should be some setting somewhere - but I don't see it. I'm on a multisite installation. Is it perhaps a Network Admin permission? I've tried logging in as Network Admin and I don't see a change in the options. I also tried activating it on a clean site to see if perhaps it was a plugin conflict. Same. No configuration options anywhere.

What should I be seeing?

Additional issue on this point - if it is activated and not configured - the media uploader doesn't seem to find the media files. I tried uploading a photo, but it showed an FTP error and it wouldn't display existing photos. I deactivated it and everything is back to normal. I could be wrong, but it appears it should have a warning if it is activated and not configured in the dashboard.

Migrating existing media - URLs not being replaced?

I'm migrating the photos on my website to Dreamspeed with the plugin activated.

The site is - memoriafoto.com

The first post shown, was done by loading the photos to a new post with the plugin activated (post - One A Day - 441. The rest of the posts shown on the front page have photos that were uploaded before the plugin was activated and have now been migrated according to the media center - however - the URLs of the photos are still not pointing to their versions on the CDN.

Since I don't know how the plugin processes existing photos, I don't know if it is going to go through all the photos and then make a URL pass. I have cleared the cache and checked the posts with the attached media and in fact, the URLs are not changed in the posts. And I also checked the media center to assure the photos in the posts with migrated media were attached to the posts.

So - my question is - what is happening? Do I just need to wait or is the routine that is supposed to change URLs as it migrates the photos? Is there something I need to do?

Better 'No existing media to upload' checks

Right now if you have no media to upload, it says "Yay! everything's been uploaded!" It would be better if it said "You have no bananas today!"

Possible concept: get_posts with post_type = attachment , post_status = any

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.