Guide post fix error code Gag

Currently many customers using Gag clone source with an error message when a new post ( post image ) will present an error when finishing post

error displayed when posting photos

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/user/public_html/include/functions/main.php on line 40

Warning: Cannot modify header information – headers already sent by (output started at /home/user/public_html/include/functions/main.php:40) in /home/user/public_html/submit.php on line 358

 

And inform the technical department as server configuration error. It is difficult to say when the request server configuration under the code if you use only shared hosting but want the server configuration for yourself.

We see the error displayed from source is not understood broadly to execute command open_basedir, so we have to modify the source code to use is on shared hosting.

Steps 1 you open the file main.php notepad or any software that supports editing text files

include/functions/main.php

locate the line 40 we will see

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

replace the

//curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

Save ( save) and upload overrides the old file, visit your website to try new post pictures look was or not? ( note that when using server can run cache, you need to remove this file entirely on previous hosting and upload new files to edit on your computer in order to avoid waiting for the cache to expire)

 

VN:F [1.9.22_1171]
Rating: 3.0/5 (2 votes cast)

Guide post fix error code Gag, 3.0 out of 5 based on 2 ratings