Comments (8)
I noticed that the comments mention that PHP 5.4 is required. Do you mean is a minumum requirement or this exact version is needed?
from cloudinary_php.
Hi @Mcgurk125,
The PHP 5.4 is a minimum requirement.
The reason you get this error is that you did not install the package through composer.
If you do have composer in your project, running composer dump-autoload -o
from your command line should solve the issue.
In case you don't use composer and would like to fix the issue manually, you can try and add the following the top of your Api.php file (which in your case is located in the root folder):
namespace Cloudinary\Api {
class Error extends \Exception {}
class NotFound extends Error {}
class NotAllowed extends Error {}
class AlreadyExists extends Error {}
class RateLimited extends Error {}
class BadRequest extends Error {}
class GeneralError extends Error {}
class AuthorizationRequired extends Error {}
class Response extends \ArrayObject {
function __construct($response) {
parent::__construct(\Cloudinary\Api::parse_json_response($response));
$this->rate_limit_reset_at = strtotime($response->headers["X-FeatureRateLimit-Reset"]);
$this->rate_limit_allowed = intval($response->headers["X-FeatureRateLimit-Limit"]);
$this->rate_limit_remaining = intval($response->headers["X-FeatureRateLimit-Remaining"]);
}
}
}
from cloudinary_php.
from cloudinary_php.
That has worked! Thank you. I am now just getting a connection refused, do you know if that is common issue on shared hosting?
from cloudinary_php.
@Mcgurk125 I can see that you also have an open ticket with us on our support system, related to the same issue. It seems like you've managed to solve the connection refused error that you've been experiencing. Is that correct?
from cloudinary_php.
from cloudinary_php.
thank you so much
from cloudinary_php.
@vjnvisakh you're welcome. Just please note that although this solution works, it is most advised that you use the autoloader.php approach that I suggested you in the support ticket you opened.
from cloudinary_php.
Related Issues (20)
- Fatal declaration error due to monolog change HOT 3
- PHP 8.1 support HOT 5
- Migrate from Travis to GitHub actions HOT 2
- Add PHPStan HOT 1
- Wrong CLOUDINARY_URL HOT 3
- Why does the response I'm getting not reflect the documentation's format? HOT 5
- Missing a way to easily request every asset type HOT 18
- Deprecated: fopen(): Passing null to parameter #3 ($use_include_path) of type bool is deprecated (php 8.1) HOT 1
- Update access mode method not available in SDK HOT 10
- [2.7.1] Why separate package and failure on composer-require-checker HOT 1
- Fatal Error on PHP 7.4 HOT 2
- Bad signature when public id contains commas HOT 5
- Error using defaultvalues in class SetMetadataField HOT 1
- Incorrect URL generated when Public ID of MediaAsset ends with dot + 1-5 characters HOT 3
- ${var} -> {$var} for PHP 8.2 compatibility in version 1.x HOT 5
- Deprecations on PHP 8.2 HOT 1
- Call to undefined function GuzzleHttp\Promise\promise_for() HOT 3
- Get rid of `teapot-php/status-code` dependency HOT 9
- Drop Guzzle requirement and replace with any PSR-18 HttpClient
- Use named parameters instead of array in Version 3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudinary_php.