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

"Warning: Invalid error type specified in ...\PHPWord.php on line 226" is thrown when the specified template file is not found #32

Closed
ghost opened this issue Nov 5, 2013 · 0 comments
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Nov 5, 2013

The problem is in the followed statement:
trigger_error('Template file '.$strFilename.' not found.', E_ERROR);

Due to http:https://php.net/manual/en/function.trigger-error.php:
"It only works with the E_USER family of constants, and will default to E_USER_NOTICE."

So, replacing E_ERROR with E_USER_ERROR helps.

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

No branches or pull requests

1 participant