Giter Club home page Giter Club logo

googledrivemediasource's Introduction

Google Drive Media Source for MODX 3.0+

Special thanks to Catch Media for commissioning this extra.

This package includes a custom Flysystem Driver and MODX Media Source implementation to provide access and standard file management features for Google Drive.

googledrivemediasource's People

Contributors

mark-h avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

googledrivemediasource's Issues

Outside of allowed scope

I go to server/manager/?a=media/browser and select the "filesystem". Setup seemed to go without issue all auth'd and user has access to shared drive. Setup the media source root to the shared drive root. Clicked it in the link above and get "Outside of allowed scope"

I saw this in the nginx logs if that helps.

2023/12/04 04:42:50 [error] 1426#1426: *255 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught League\Flysystem\UnableToRetrieveMetadata: Outside of allowed scope in /var/www/html/core/components/googledrivemediasource/src/Adapter/DriveAdapter.php:686 Stack trace: #0 /var/www/html/core/components/googledrivemediasource/src/Adapter/DriveAdapter.php(127): modmore\GoogleDriveMediaSource\Adapter\DriveAdapter->limitToRoot() #1 /var/www/html/core/components/googledrivemediasource/src/Adapter/DriveAdapter.php(157): modmore\GoogleDriveMediaSource\Adapter\DriveAdapter->get() #2 /var/www/html/core/components/googledrivemediasource/src/Adapter/DriveAdapter.php(550): modmore\GoogleDriveMediaSource\Adapter\DriveAdapter->list() #3 /var/www/html/core/components/googledrivemediasource/src/Model/GoogleDriveMediaSource.php(781): modmore\GoogleDriveMediaSource\Adapter\DriveAdapter->listContents() #4 /var/www/html/core/src/Revolution/Processors/Browser/Directory/GetFiles.php(46): modmore\GoogleDriveMediaSource\Model\GoogleDriveMediaSource->getObjectsInContainer() #5 /var" while reading response header from upstream, client: myip, server: server, request: "POST /connectors/index.php HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "server", referrer: "https://server/manager/?a=media/browser"

Error Code: 500 - adding new media sources

When I try to create a new media source, I get Error 500.

this is the error during installation.

PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/composer/installed.json): Failed to open stream: No such file or directory
PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/composer/installed.php): Failed to open stream: No such file or directory
PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/composer/InstalledVersions.php): Failed to open stream: No such file or directory
PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/composer/autoload_namespaces.php): Failed to open stream: No such file or directory
PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/composer/autoload_psr4.php): Failed to open stream: No such file or directory
PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/composer/autoload_classmap.php): Failed to open stream: No such file or directory
PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/composer/autoload_files.php): Failed to open stream: No such file or directory
PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/composer/autoload_static.php): Failed to open stream: No such file or directory
PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/composer/platform_check.php): Failed to open stream: No such file or directory
PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/autoload.php): Failed to open stream: No such file or directory
PHP warning: file_get_contents(/www/core/components/googledrivemediasource/vendor/composer/autoload_real.php): Failed to open stream: No such file or directory

And this is what I have from the error log.

[2023-03-14 02:29:23] (ERROR @ /www/core/components/googledrivemediasource/bootstrap.php : 10) Autoloader not present for Google Drive Media Source

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.