How to active file_get_contents in php.ini

This topic has 11 replies, 4 voices, and was last updated 9 years, 8 months ago ago by Eva Kemp

  • Avatar: Webdesignangelo
    Webdesignangelo
    Participant
    March 26, 2015 at 16:14

    I have read the Documentation and saw that one of the things to check is that file_get_contents() is activated. I contacted my host about it and they said I can add this function to the php.ini file and so I did. But the support person was no technician and said he doesn´t know this function and doesn´t really know what to do with it or if I have to write something in the () area.

    What exactly do I have to do in order to make this work.

    And a side question: My hosting package only allows 50M memory limit. Is this a real problem? I could upgrade but would have to pay more for hosting, so I´d like to know if it´s really necessary.

    Thanks in advance!

    10 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    March 26, 2015 at 16:39

    Hello,

    Please read this topic:
    https://www.a2hosting.com/kb/developer-corner/php/using-php.ini-directives/php-allow-url-fopen-directive
    Also recommended memory_limit for our theme is no less than 64M and this is important.

    Regards,
    Robert Hall.

    Avatar: Webdesignangelo
    Webdesignangelo
    Participant
    March 26, 2015 at 20:07

    Thank you Robert Hall,

    file_get_contents
    okay, that´s something I´ll have to try it out first. Thanks for the link.

    memory limit:
    what exactly does the 64M mean? 64mb per script call or something else? My host says the next package that costs 5 times more than the one I have right now would have 100mb per script call and the one I have right now has 50mb per script call.

    Avatar: Webdesignangelo
    Webdesignangelo
    Participant
    March 26, 2015 at 20:28

    @RobertHall: I read the article but this doesn´t really give me an idea how to activate file_get_contents.

    Or does it mean that I activate it by enabeling allow_url_fopen ?

    Avatar: Eva
    Eva Kemp
    Support staff
    March 26, 2015 at 21:53

    Hello,

    Yes, you need enable allow_url_fopen function.
    You can ask your host to enable it.

    Regards,
    Eva Kemp.

    Avatar: Webdesignangelo
    Webdesignangelo
    Participant
    April 4, 2015 at 20:41

    Update: I have totaly forgotten that I already upgraded my webhost package and my memory_limit = 100M
    So this doesn´t really seem to be the problem. But I just found out how to active allow_url_fopen by simply going into the php.ini file and click it active.

    Still until now it´s not working and I already wrote an e-mail to support with a login. Looking forward to get this working.

    Avatar: Eva
    Eva Kemp
    Support staff
    April 6, 2015 at 08:46

    Hello,

    Are you unable to install templates versions in Theme Options > Import/Export?
    Please provide us with FTP and wp-admin panel credentials in Private Content.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: Webdesignangelo
    Webdesignangelo
    Participant
    April 6, 2015 at 12:48

    Just went to “Theme Settings > Import/Export” I can see the options all kind of code that I can copy for export but I don´t really know how to use the import.

    I have already sent an e-mail with FTP and wp-admin data but also attached it now in the private content. Thank you very much!

    Please, contact administrator
    for this information.
    Avatar: Brian Johnson
    Brian Johnson
    Member
    April 6, 2015 at 13:31

    Hello

    Please describe us what is the issue you faced that indicates allow_ur_fopen in disabled state.

    With best reagrds
    Brian Johnson

    Avatar: Webdesignangelo
    Webdesignangelo
    Participant
    April 6, 2015 at 13:56

    I always got the message “Preparing to import… Some error occured!” when going to the “tools > import demo data” and click “start import”. The same message occured when I activated file_get_contents in php.ini

    But I now got an e-mail back from support: “We have checked your site, then problem is in your hosing, it doesn’t support zip unpacking function, that’s why script can’t unpack zip archive with demo data and install. Please ask your hosting to activate zip for php. See screenshots

    http://screencast.com/t/2x8ezE6BtT

    http://php.net/manual/en/zip.installation.php”

    I will check that with my host now.

    Avatar: Eva
    Eva Kemp
    Support staff
    April 6, 2015 at 17:51

    Hello,

    Ok. Let us know if further assistance is required.

    Thank you.
    Regards,
    Eva Kemp.

  • Viewing 11 results - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.