dompdf and php5.ini : where/how/what?

clr550that
clr550that
Offline
0
it says php5.ini needs to be updated for the pdf stuff to work properly...but I can't find it...it isn't where the screen says it is (can't find that directory at all). Is it possible that is a setting I cannot adjust, but there's another override that I can...there is a php.ini in my root directory...but isn't exactly the file you described and doesn't have that magic quotes variable in it. So...any help is appreciated.
Chris

Accepted Answer

clr550that
clr550that
Offline
Thursday, August 15 2013, 06:24 PM - #Permalink
0
OK, thank God for modern search engines.
Here's the deal (resolved).
I have hosting through 550hosting.com (great great great). The backend is goDaddy, so here's what I did through my 550hosting control panel.

I did create a phpinfo.php file with the single line and put it in the root. This was the best troubleshooting tip. There are lots of parameters, so search for "quotes", as in magic quotes. Clearly ON.

There was an existing php.ini file in my root

I did rename it to php5.ini
I did add three lines to the top of the file
magic_quotes_gpc = Off;
magic_quotes_runtime = Off;
magic_quotes_sybase = Off;

These lines had semicolons when the others didn't...I don't care as long as it is working! :)

I 'did' go into the hosting control panel, found System Process, found "End Web" and pressed it. It ended.

I then pulled up my phpinfo.php file again and it seems to have "taken"...magic quotes off...Persistent error message in component interface GONE, pdf icon present.

Thank you internet users and 550hosting!
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Thursday, August 15 2013, 09:22 PM - #Permalink
    0
    hello!

    sorry for the late answer. I can see you managed to solve it :) yes, if that variable is not on the php.ini file, you can simply "add it".

    well done, anyway :) good job.
    The reply is currently minimized Show
  • Accepted Answer

    clr550that
    clr550that
    Offline
    Tuesday, August 20 2013, 08:27 PM - #Permalink
    0
    Follow up to this post: I had issues with the image embedded in the PDF invoice.
    Here's what happened:
    when I updated the php.ini (php5.ini) file in the root to add the magicquotes lines, I did not notice (did not understand) there was a line in there "allow_url_fopen" that was off.
    I updated this parm to on, did the "end web" thing described above...once I go back to it...image is in the invoice.
    Thanks Germinal

    magic_quotes_gpc = Off;
    magic_quotes_runtime = Off;
    magic_quotes_sybase = Off;
    allow_url_fopen = on;
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, August 20 2013, 08:43 PM - #Permalink
    0
    ohh!! happy ending :)

    then that was it :) yes, allow_url_fopen must be ON.

    GOOD JOB! :)
    The reply is currently minimized Show
Your Reply