Error

Undefined constant "CURLOPT_CONNECTTIMEOUT"

/media/shnoulle/data/webdev/master/vendor/tecnickcom/tcpdf/include/tcpdf_static.php(115)

103     /**
104      * Array page boxes names
105      * @public static
106      */
107     public static $pageboxes = array('MediaBox', 'CropBox', 'BleedBox', 'TrimBox', 'ArtBox');
108 
109     /**
110      * Array of default cURL options for curl_setopt_array.
111      *
112      * @var array<int, bool|int|string> cURL options.
113      */
114     protected const CURLOPT_DEFAULT = [
115         CURLOPT_CONNECTTIMEOUT => 5,
116         CURLOPT_MAXREDIRS => 5,
117         CURLOPT_PROTOCOLS => CURLPROTO_HTTPS | CURLPROTO_HTTP | CURLPROTO_FTP | CURLPROTO_FTPS,
118         CURLOPT_SSL_VERIFYHOST => 2,
119         CURLOPT_SSL_VERIFYPEER => true,
120         CURLOPT_TIMEOUT => 30,
121         CURLOPT_USERAGENT => 'tcpdf',
122     ];
123 
124     /**
125      * Array of fixed cURL options for curl_setopt_array.
126      *
127      * @var array<int, bool|int|string> cURL options.

Stack Trace

#0
+
 /media/shnoulle/data/webdev/master/vendor/tecnickcom/tcpdf/include/tcpdf_static.php(2511): [constant expression]()
2506      * @return array containing page width and height in points
2507      * @since 5.0.010 (2010-05-17)
2508      * @public static
2509      */
2510     public static function getPageSizeFromFormat($format) {
2511         if (isset(self::$page_formats[$format])) {
2512             return self::$page_formats[$format];
2513         }
2514         return self::$page_formats['A4'];
2515     }
2516 
#1
+
 /media/shnoulle/data/webdev/master/vendor/tecnickcom/tcpdf/tcpdf.php(2153): TCPDF_STATIC::getPageSizeFromFormat()
2148             // remove inherited values
2149             unset($this->pagedim[$this->page]);
2150         }
2151         if (is_string($format)) {
2152             // get page measures from format name
2153             $pf = TCPDF_STATIC::getPageSizeFromFormat($format);
2154             $this->fwPt = $pf[0];
2155             $this->fhPt = $pf[1];
2156         } else {
2157             // the boundaries of the physical medium on which the page shall be displayed or printed
2158             if (isset($format['MediaBox'])) {
#2
+
 /media/shnoulle/data/webdev/master/vendor/tecnickcom/tcpdf/tcpdf.php(1958): TCPDF->setPageFormat()
1953             'zapfdingbats'=>'ZapfDingbats'
1954         );
1955         // set scale factor
1956         $this->setPageUnit($unit);
1957         // set page format and orientation
1958         $this->setPageFormat($format, $orientation);
1959         // page margins (1 cm)
1960         $margin = 28.35 / $this->k;
1961         $this->setMargins($margin, $margin);
1962         $this->clMargin = $this->lMargin;
1963         $this->crMargin = $this->rMargin;
2025-06-11 07:08:36 nginx/1.22.1 Yii Framework/1.1.30