Probably Problem with PHP Version after transfer

Status
Not open for further replies.

gethanos

New Member
Messages
6
Reaction score
0
Points
0
hello.

For about 5-6 days i had the downtime as everybody here did with the transfer.
The problem is that the last 2-3 days my page is working, But it's like i have the "Basic" Version of php. (No mail() fanction etc).I am running a "Joomla" for main page.Most importand is that i am running a "moodle" also for education reasons (I am a teacher). I am getting "
Warning: posix_times() has been disabled for security reasons in /home/gethanos/public_html/moodle/lib/setuplib.php on line 36".
I quess that's because the server "Thinks" i have the "Basic" Version of php too.

I can login normally on my account manager page but it shows everything "Offline" except the MySql server.(But still i can see my site)

Plz i will really appreciate it if you could check it cause i need the "Moodle" back working :/ (It's exams weeks)

thank you for your time.

Server: Lotus.x10
Account username: gethanos
URL: gethanos.x10hosting.com
Moodle URL: gethanos.x10hosting.com/moodle
 

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Post line 36 of /home/gethanos/public_html/moodle/lib/setuplib.php please.
 

gethanos

New Member
Messages
6
Reaction score
0
Points
0
function init_performance_info() {

global $PERF, $CFG, $USER;

$PERF = new Object;
$PERF->dbqueries = 0;
$PERF->logwrites = 0;
if (function_exists('microtime')) {
$PERF->starttime = microtime();
}
if (function_exists('memory_get_usage')) {
$PERF->startmemory = memory_get_usage();
}
if (function_exists('posix_times')) {
$PERF->startposixtimes = posix_times();
}
if (function_exists('apd_set_pprof_trace')) {
// APD profiling
if ($USER->id > 0 && $CFG->perfdebug >= 15) {
$tempdir = $CFG->dataroot . '/temp/profile/' . $USER->id;
mkdir($tempdir);
apd_set_pprof_trace($tempdir);
$PERF->profiling = true;
}
}
}


Line 36: if (function_exists('posix_times')) {
$PERF->startposixtimes = posix_times();

That's the part of the code that brings the error.
Nothing changed after (or before) the transfer.It just stoped working.Like the mail() function too.
Thank you again
Edit:
Thank you very much for fast responce. ;) Moodle and mail()
seems that working perfect again :)

But still my account manager acts abit strange. It shows everything "Offline" except MySql server, but the site works.
That means i am on a different server that then one that shows me, or it's something else?
 
Last edited:

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
The account management panel status script hasn't been updated to use the new servers yet.
 
Last edited:
Status
Not open for further replies.
Top