Fatal error by running Backup/Dump

Frank.dev - July 23, 2008 - 12:25
Project:Backup Client-Server
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

Hi,

I want run "Dump data" (on "Database") and/or "Backup Drupal" (on "Files") - Server returns "WhitePage" and following Error-Message:

Fatal error: Call to undefined function apache_get_version() in /drupal/sites/all/modules/backup_client_server/backup_client.module on line 444

To my System:
MySQL: 4.0.27
PHP: 5.2.6
I have correctly installed PEAR.php and Tar.php.

What runs there wrong?

Greetings
Frank

#1

jpsalter - July 23, 2008 - 15:20

For some reason your setup does not have that function. Your system specifications indicates it should have the function:

http://php.net/manual/en/function.apache-get-version.php

This part of the module tries to give the script as much time as possible. It is not essential for the running of the module.

You can delete this code to get the module running (lines 442 - 447):

<?php
 
// Expand Apache's time limit if available.
  // Function only works for Apache 1 & PHP >= 5.1.0
 
$version = substr(apache_get_version(), 7, 1);
  if (
version_compare(PHP_VERSION, '5.1.0', '>=') && $version == 1) {
   
apache_reset_timeout();
  }
?>

#2

Frank.dev - July 23, 2008 - 20:45
Status:active» closed

Many thanks now the module works fine for me. :-)

#3

jpsalter - August 22, 2008 - 20:32
Status:closed» active

Changing to active so others can see the fixed until a new update is posted.

 
 

Drupal is a registered trademark of Dries Buytaert.