arnoldle / phplist-plugin-inlineImagePlugin

A plugin to allow embedded inline images in list messages
2 stars 3 forks source link

"Cannot access image file" error #1

Closed hairorh closed 10 years ago

hairorh commented 10 years ago

Hello, with a clean install of phplist and a simple html code like this:

text

I get the "Cannot access image file"

arnoldle commented 10 years ago

Since I did not receive the HTML code with the message, I cannot see what you are trying to do nor can I diagnose what the problem is.

The error message "Cannot access image file” results when the Plugin is unable to load the image file from the ‘src’ URL in an image tag in the message.

Arnold

On Aug 30, 2014, at 7:26 AM, hairorh notifications@github.com wrote:

Hello, with a clean install of phplist and a simple html code like this:

text

I get the "Cannot access image file"

— Reply to this email directly or view it on GitHub.

hairorh commented 10 years ago

Hello, this is the code, I´ve simplified it the most for testing purpose, It does not work either with any other code I tried.

<html>
<head>
</head>
<body>
    <span>
    Actualidad Turistica en el Caribe, Últimas Noticias e Información
</span>
<br>
<img src="http://caribbeanoperatorsbook.com/ttccomon/boletin/2014/img/bole/bole-head-580-123-esp.png" class="inline"/>
</body>
</html>

I´m starting from a clean install of phplist using softaculous and instaling the inlineimage plugin manual for it gives me error doing it from the Plugin Manager. On a shared account:

Thank you for the quick response, regards

arnoldle commented 10 years ago

Hi!

I sent your message through my test list with exactly the HTML that you wrote. The image was correctly sent as an inline image with no problem.

If you would send me your correct email address, I can send you a message showing exactly what I received from my test list.

But as near as I can tell, the plugin seems to be working fine.

I carried out the test using PHP v5.3, Phplist v3.07, MySQL v5.5.39-MariaDB, Apache v2.27, Architecture x86-64, and the linux OS. So my system is very similar to yours.

Are you sure that you have enabled the inlineImage plugin?

Arnold

On Aug 30, 2014, at 3:45 PM, hairorh notifications@github.com wrote:

Hello, this is the code, I´ve simplified it the most for testing purpose, It does not work either with any other code I tried.

Actualidad Turistica en el Caribe, Últimas Noticias e Información

I´m starting from a clean install of phplist using softaculous and instaling the inlineimage plugin manual for it gives me error doing it from the Plugin Manager. On a shared account:

Apache version 2.2.26 PHP version 5.3.27 MySQL version 5.5.36-cll Architecture x86_64 Operating system linux Thank you for the quick response, regards

— Reply to this email directly or view it on GitHub.

hairorh commented 10 years ago

Hello, thanks again for your time. The plugin is enable, then the only I can think of is some sort of permissions issue. There is some special php requirements that I might check in my php.ini? Kind regards

On Aug 31, 2014 4:37 PM, "arnoldle" notifications@github.com wrote:

Hi!

I sent your message through my test list with exactly the HTML that you wrote. The image was correctly sent as an inline image with no problem.

If you would send me your correct email address, I can send you a message showing exactly what I received from my test list.

But as near as I can tell, the plugin seems to be working fine.

I carried out the test using PHP v5.3, Phplist v3.07, MySQL v5.5.39-MariaDB, Apache v2.27, Architecture x86-64, and the linux OS. So my system is very similar to yours.

Are you sure that you have enabled the inlineImage plugin?

Arnold

On Aug 30, 2014, at 3:45 PM, hairorh notifications@github.com wrote:

Hello, this is the code, I´ve simplified it the most for testing purpose, It does not work either with any other code I tried.

Actualidad Turistica en el Caribe, Últimas Noticias e Información

I´m starting from a clean install of phplist using softaculous and instaling the inlineimage plugin manual for it gives me error doing it from the Plugin Manager. On a shared account:

Apache version 2.2.26 PHP version 5.3.27 MySQL version 5.5.36-cll Architecture x86_64 Operating system linux Thank you for the quick response, regards

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/arnoldle/phplist-plugin-inlineImagePlugin/issues/1#issuecomment-53991546 .

arnoldle commented 10 years ago

Hi, that must be the case.

I looked through the php.ini directives at http://us.php.net/ini.core and found little that seemed relevant, except perhaps the disable_functions directive.

FWIW, the image is loaded into the plugin using file_get_contents(), see http://php.net/manual/en/function.file-get-contents.php. When this function fails, it returns false, triggering the error message that you have been receiving.

The file name can be a stream wrapper: see http://php.net/manual/en/wrappers.php — http;// is a predefined stream wrapper. See http://php.net/manual/en/wrappers.http.php.

Possibly for some reason your PHP does not include the standard predefined stream wrappers that most installations have. You may have to do some experiments to see what works or create a custom http:// stream wrapper.

Sorry that I can’t be more help. Arnold

On Aug 31, 2014, at 10:43 AM, hairorh notifications@github.com wrote:

Hello, thanks again for your time. The plugin is enable, then the only I can think of is some sort of permissions issue. There is some special php requirements that I might check in my php.ini? Kind regards

My email is hairorh@gmail.com On Aug 31, 2014 4:37 PM, "arnoldle" notifications@github.com wrote:

Hi!

I sent your message through my test list with exactly the HTML that you wrote. The image was correctly sent as an inline image with no problem.

If you would send me your correct email address, I can send you a message showing exactly what I received from my test list.

But as near as I can tell, the plugin seems to be working fine.

I carried out the test using PHP v5.3, Phplist v3.07, MySQL v5.5.39-MariaDB, Apache v2.27, Architecture x86-64, and the linux OS. So my system is very similar to yours.

Are you sure that you have enabled the inlineImage plugin?

Arnold

On Aug 30, 2014, at 3:45 PM, hairorh notifications@github.com wrote:

Hello, this is the code, I´ve simplified it the most for testing purpose, It does not work either with any other code I tried.

Actualidad Turistica en el Caribe, Últimas Noticias e Información

I´m starting from a clean install of phplist using softaculous and instaling the inlineimage plugin manual for it gives me error doing it from the Plugin Manager. On a shared account:

Apache version 2.2.26 PHP version 5.3.27 MySQL version 5.5.36-cll Architecture x86_64 Operating system linux Thank you for the quick response, regards

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/arnoldle/phplist-plugin-inlineImagePlugin/issues/1#issuecomment-53991546 .

— Reply to this email directly or view it on GitHub.

hairorh commented 10 years ago

Hello Arnold, you have been very helpful, I will do some research and I will let you know. Thanks one more time On Aug 31, 2014 5:11 PM, "arnoldle" notifications@github.com wrote:

Hi, that must be the case.

I looked through the php.ini directives at http://us.php.net/ini.core and found little that seemed relevant, except perhaps the disable_functions directive.

FWIW, the image is loaded into the plugin using file_get_contents(), see http://php.net/manual/en/function.file-get-contents.php. When this function fails, it returns false, triggering the error message that you have been receiving.

The file name can be a stream wrapper: see http://php.net/manual/en/wrappers.php — http;// is a predefined stream wrapper. See http://php.net/manual/en/wrappers.http.php.

Possibly for some reason your PHP does not include the standard predefined stream wrappers that most installations have. You may have to do some experiments to see what works or create a custom http:// stream wrapper.

Sorry that I can’t be more help. Arnold

On Aug 31, 2014, at 10:43 AM, hairorh notifications@github.com wrote:

Hello, thanks again for your time. The plugin is enable, then the only I can think of is some sort of permissions issue. There is some special php requirements that I might check in my php.ini? Kind regards

My email is hairorh@gmail.com On Aug 31, 2014 4:37 PM, "arnoldle" notifications@github.com wrote:

Hi!

I sent your message through my test list with exactly the HTML that you wrote. The image was correctly sent as an inline image with no problem.

If you would send me your correct email address, I can send you a message showing exactly what I received from my test list.

But as near as I can tell, the plugin seems to be working fine.

I carried out the test using PHP v5.3, Phplist v3.07, MySQL v5.5.39-MariaDB, Apache v2.27, Architecture x86-64, and the linux OS. So my system is very similar to yours.

Are you sure that you have enabled the inlineImage plugin?

Arnold

On Aug 30, 2014, at 3:45 PM, hairorh notifications@github.com wrote:

Hello, this is the code, I´ve simplified it the most for testing purpose, It does not work either with any other code I tried.

Actualidad Turistica en el Caribe, Últimas Noticias e Información
http://caribbeanoperatorsbook.com/ttccomon/boletin/2014/img/bole/bole-head-580-123-esp.png"

class="inline"/>

I´m starting from a clean install of phplist using softaculous and instaling the inlineimage plugin manual for it gives me error doing it from the Plugin Manager. On a shared account:

Apache version 2.2.26 PHP version 5.3.27 MySQL version 5.5.36-cll Architecture x86_64 Operating system linux Thank you for the quick response, regards

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub < https://github.com/arnoldle/phplist-plugin-inlineImagePlugin/issues/1#issuecomment-53991546>

.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/arnoldle/phplist-plugin-inlineImagePlugin/issues/1#issuecomment-53992591 .

hairorh commented 10 years ago

Hello again, after a quick look I found that allow_url_fopen was off in my php.ini, once turned on the plugin works as expected. Very useful plugin!