Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class Error on first load #170

Open
biroplane opened this issue Sep 28, 2017 · 4 comments
Open

Class Error on first load #170

biroplane opened this issue Sep 28, 2017 · 4 comments

Comments

@biroplane
Copy link

i was trying to use this awesome class, but i can't event start.

i've been trying installing via composer and thru direct requiring. none of them are working.
it displays this error.

Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /wwwdata/system/olanda/invoices/mailchimp/htmltomail/CssToInlineStyles.php on line 160

my file is just like this.

require('vendor/autoload.php');
require('src/CssToInlineStyles.php');

$CssToInlineStyles=new CssToInlineStyles();
@stof
Copy link
Collaborator

stof commented Sep 28, 2017

the latest version requires PHP 5.5+. The error you get looks like the one you would get when running the code with an older PHP version

@biroplane
Copy link
Author

can i use an older version of CssToInlineStyles that works on PHP 5.4.45
thanks

@dg-web
Copy link

dg-web commented Jan 23, 2018

Fatal error: Uncaught Error: Class 'TijsVerkoyen\CssToInlineStyles\CssToInlineStyles' not found in....

my file code is :-

convert( $html, $css );

@dg-web
Copy link

dg-web commented Jan 23, 2018

please help me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants