Call to undefined function curl_init()

Discussion forum about Anuko Time Tracker
Post Reply
tuxstef
Posts: 5
Joined: Fri Nov 20, 2009 3:33 pm

Call to undefined function curl_init()

Post by tuxstef » Wed Aug 14, 2019 5:36 pm

Hello,
I try to run the tt on ubuntu zesty with php 7.2
I get following error if I try to remove an entry of the week:

Wed Aug 14 19:31:18.727729 2019] [php7:error] [pid 1844] [client 127.0.0.1:51176] PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /var/www/html/timetracker/WEB-INF/lib/ttFileHelper.class.php:78\nStack trace:\n#0 /var/www/html/timetracker/WEB-INF/lib/ttFileHelper.class.php(53): ttFileHelper->checkSiteRegistration()\n#1 /var/www/html/timetracker/WEB-INF/lib/ttTimeHelper.class.php(561): ttFileHelper->__construct(Object(ActionErrors))\n#2 /var/www/html/timetracker/time_delete.php(66): ttTimeHelper::delete(2)\n#3 {main}\n thrown in /var/www/html/timetracker/WEB-INF/lib/ttFileHelper.class.php on line 78, referer: http://localhost/timetracker/time_delete.php?id=2

The data for deletion is following:

-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Erstellungszeit: 14. Aug 2019 um 19:46
-- Server-Version: 10.1.41-MariaDB-0ubuntu0.18.04.1
-- PHP-Version: 7.1.17-0ubuntu0.17.10.1

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Datenbank: `timetracker`
--

--
-- Daten für Tabelle `tt_log`
--

INSERT INTO `tt_log` (`id`, `user_id`, `group_id`, `org_id`, `date`, `start`, `duration`, `client_id`, `project_id`, `task_id`, `timesheet_id`, `invoice_id`, `comment`, `billable`, `approved`, `paid`, `created`, `created_ip`, `created_by`, `modified`, `modified_ip`, `modified_by`, `status`) VALUES
(2, 2, 1, 1, '2019-08-11', '19:20:00', '00:05:00', NULL, NULL, NULL, NULL, NULL, 'test', 1, 0, 0, '2019-08-14 19:18:04', '127.0.0.1', 2, '2019-08-14 19:20:18', '127.0.0.1', 2, 1);

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

wrc
Posts: 280
Joined: Tue May 25, 2010 8:30 pm

Re: Call to undefined function curl_init()

Post by wrc » Thu Aug 15, 2019 12:02 am

You can disable the Attachments plugin to get rid of this error.

tuxstef
Posts: 5
Joined: Fri Nov 20, 2009 3:33 pm

Re: Call to undefined function curl_init()

Post by tuxstef » Fri Aug 16, 2019 6:19 am

Hello,
thank you it worked to disable the attachments plugin.

I have now tested the attachments plugin and there's another error running tt on php 5.6 when trying to delete an entry:

Fri Aug 16 08:14:15.820849 2019] [:error] [pid 915] [client 127.0.0.1:37966] PHP Fatal error: Call to undefined function curl_init() in /var/www/html/timetracker/WEB-INF/lib/ttFileHelper.class.php on line 78, referer: http://localhost/timetracker/time_delete.php?id=6

I used tt with pdf functionality for all the posts in this topic.

tuxstef
Posts: 5
Joined: Fri Nov 20, 2009 3:33 pm

Re: Call to undefined function curl_init()

Post by tuxstef » Fri Aug 16, 2019 6:25 am

Everything is working fine with the latest stable version 1.18 (no pdf functionality) including php 7.3 and the attachment plugin.

So the pdf tt seems to have some problems.

Post Reply