OfflineMode plugin on new share host

2 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: 6 hours ago   (RSS)

Hi Jeff,

I am assuming here that you are using offlineMode v1.02. 

Around line 264 in the offlineMode_getUrl() function, you see a $curl_options being set with CURLOPT_USERAGENT. Change that line to...

$curl_options = [CURLOPT_USERAGENT => $userAgent, CURLOPT_TIMEOUT => 10];

You can give that a try and test different values. You don't want it to be too long. Currently the default is set to 4. 

I believe that will achieve what you are looking for when it comes to setting CURL timeouts. I am not sure if this is going to solve the issue if the script is hanging for another reason. Worth giving it a try.

Let us know if it works out for you.

Tim Hurd
Senior Web Programmer
Interactivetools.com