laravel-html-email-inliner's People
laravel-html-email-inliner's Issues
Broken in Laravel 5.0
This line of code breaks the app on Laravel 5.0.
BadMethodCallException in ServiceProvider.php line 226:
Call to undefined method [package]
I would love to suggest a fix but don't know enough in package development.
Premailer or getopt gems not installed
I tried to install the dependencies you mentioned in here https://gist.github.com/emilsundberg/8ae10ca886058c683d13 but it didn't work.
The first mention is that Premailer requires ruby >= 2.0.0.
ERROR: Error installing premailer:
premailer requires Ruby version >= 2.0.0.
Even installing ruby 2.0.0, I still getting that error message.
I tried also latest ruby version, but nothing seems to work. I'm using homestead version 0.4.4.
Thank you.
5.2 support broken! > Call to undefined method [package]
Call to undefined method [package]
in ServiceProvider.php line 237
at ServiceProvider->__call('package', array('emil/inliner')) in InlinerServiceProvider.php line 21
at InlinerServiceProvider->package('emil/inliner') in InlinerServiceProvider.php line 21
at InlinerServiceProvider->boot()
at call_user_func_array(array(object(InlinerServiceProvider), 'boot'), array()) in Container.php line 507
at Container->call(array(object(InlinerServiceProvider), 'boot')) in Application.php line 734
at Application->bootProvider(object(InlinerServiceProvider)) in Application.php line 717
at Application->Illuminate\Foundation\{closure}(object(InlinerServiceProvider), '17')
at array_walk(array(object(EventServiceProvider), object(RoutingServiceProvider), object(AuthServiceProvider), object(CookieServiceProvider), object(DatabaseServiceProvider), object(EncryptionServiceProvider), object(FilesystemServiceProvider), object(FoundationServiceProvider), object(PaginationServiceProvider), object(SessionServiceProvider), object(ViewServiceProvider), object(GeneratorsServiceProvider), object(AppServiceProvider), object(AuthServiceProvider), object(EventServiceProvider), object(RouteServiceProvider), object(TranslateServiceProvider), object(InlinerServiceProvider)), object(Closure)) in Application.php line 718
at Application->boot() in BootProviders.php line 17
at BootProviders->bootstrap(object(Application)) in Application.php line 203
at Application->bootstrapWith(array('Illuminate\Foundation\Bootstrap\DetectEnvironment', 'Illuminate\Foundation\Bootstrap\LoadConfiguration', 'Illuminate\Foundation\Bootstrap\ConfigureLogging', 'Illuminate\Foundation\Bootstrap\HandleExceptions', 'Illuminate\Foundation\Bootstrap\RegisterFacades', 'Illuminate\Foundation\Bootstrap\RegisterProviders', 'Illuminate\Foundation\Bootstrap\BootProviders')) in Kernel.php line 232
at Kernel->bootstrap() in Kernel.php line 127
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 54
Not working, Laravel 4.2 and Mailgun driver
I am attempting to use this with Laravel 4.2 and the Mailgun driver. I have installed the required system dependancies in Homestead as per the linked Gist, installed the package via Composer, and added the Provider in the config.
When I send emails they are not being inlined. Do I need to do something prior to sending the email in order to enable this? Also, when I attempt to call Inliner::isEnabled() I receive the following exception: Non-static method Emil\Inliner\Inliner::isEnabled() should not be called statically
Premailer or getopt gems not installed
Inliner::isEnabled() is true but error Exception.
"Premailer or getopt gems not installed"
$scriptPath = dirname(FILE) . '/converter.rb';
$output = array();
$returnVar = 0;
$command = ($scriptPath) . ' ' . $this->_getArgumentString();
$response = exec($command, $output, $returnVar);
unlink($this->cacheDir . $this->fileName);
if ($returnVar === 1) {
throw new Exception('Premailer or getopt gems not installed');
}
return implode('', $output);
I install these.
$ sudo gem install premailer
$ sudo gem install getopt
and
"require": {
"emil/inliner": "dev-master"
}
"providers" => [
'Emil\Inliner\InlinerServiceProvider',
]
composer update
I use localhost on mac.
Can you help me?
Case sensitivity problem vendor folder
Hi Emil,
In Inliner.php on line 5 you reference the vendor folder as 'Vendor' while the folder itself is written as 'vendor'.
On my mac everything works fine but on ubuntu php throws a fatal error:
Class 'Emil\Inliner\Vendor\Premailer\Premailer not found.
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.