When posting /img I get an error about wrapper.

Help
2013-05-27
2013-05-29
  • Gisle Johnsen
    Gisle Johnsen
    2013-05-27

    Hello.

    First, thank for great chat soft. Lov it :)

    I have been using phpmychat for some days. Mainly getting to now and setting up.

    I get an error when posting an image in chat:

    Warning: getimagesize() [function.getimagesize]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /xxxx/xxxxx/public_html/chat/messagesL.php on line 95

    Warning: getimagesize(http://www.callcentrehelper.com/images/stories/2010/internet-chat-510.jpg) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /xxxx/xxxxx/public_html/chat/messagesL.php on line 95

    The image shows properly oin the chat. Also link works.
    How can I fix this error from appearing in chat?

    Thank you!

     
    • Please read my replies below. Thanks.

       
      Last edit: Ciprian Murariu 2013-05-29
  • Hi Gisle,
    I think your php settings (in php.ini) is set to "display errors" but I'm not sure.
    Anyway, I'll look into this wraper bug (might've been introduced in the late post 5.3 versions, I remember I saw it somewhere else too). Can I have link to your chat please?

    LE: Anyway, it's caused as it states, by the allow_url_fopen being disabled in php.ini. Which is good for safety. I'll look for an alternative to get image sizes (for proportionally resizing when posting)

     
    Last edit: Ciprian Murariu 2013-05-28
    • If you have the latest version from sourceforge, put these 2 files in the root of your chat, then test /img command again.
      Please let me know.

       
      Attachments