The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4.2.6 Installation Issues
#1
  • #1 - Setting:File Uploads Recommended:ON Actual:OFF


I'd like to have some information displayed about this because I didn't know what that meant. After some digging I found out that allow_url_fopen is disabled by my host for security reasons. However, there's CURL so I took a function from here:

<pre>
Code:
function url_get_contents ($Url) {
    if (!function_exists('curl_init')){
        die('CURL is not installed!');
    }
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $Url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $output = curl_exec($ch);
    curl_close($ch);
    return $output;
};
</pre>




And added it to recaptcha.config.php:

Code:
$response = url_get_contents($path . $req);

and to check_updates.php:

Code:
$remoteVersion=trim(url_get_contents(REMOTE_VERSION));

I find it inconvenient that replacing by usersc requires dependent files so I needed to copy all these:

check_updates.php
init.php
includes/user_spice_ver.php
includes/recaptcha.config.php
login.php

Also added page permission for usersc/check_updates.php in the Admin Dashboard.

Could you automatically detect CURL during installation and use it in place of file_get_contents?
  • #2 - Error performing query '/*!40101 SET NAMES utf8mb4 */; ':


I replaced utf8mb4 with utf8 in the installation sql.

  • #3 - Timezone selection not saved


Timezone is reverted to the first option when you press "Test Settings" button.

  • #4 - Parse error: syntax error in init.php on line 45


My copyright message has an apostrophe. Please add slashes to the user input.
  Reply


Messages In This Thread
4.2.6 Installation Issues - by faguss - 05-08-2017, 01:33 PM
4.2.6 Installation Issues - by mudmin - 05-09-2017, 10:12 PM
4.2.6 Installation Issues - by faguss - 05-09-2017, 10:56 PM
4.2.6 Installation Issues - by mudmin - 05-10-2017, 10:23 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)