Nginx error templates_c

126 views
Skip to first unread message

ebuy-4-you

unread,
Jan 5, 2017, 11:21:28 AM1/5/17
to Xataface

back again with first app :)


As of Xataface 1.3 all applications are now required to have its own templates_c directory to house its compiled templates. Please create the directory "/var/www/html/opencartdb/templates_c" and ensure that it is writable by the web server.


PHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/html/xataface/public-api.php' (include_path='.:/usr/share/php') in /var/www/html/opencartdb/index.php on line 2" while reading response header from upstream, client: 192.168.1.3, server: xxxxxxxxxx.ga, request: "GET /opencartdb/index.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "xxxxxxxxxxx.ga"

When creating the templates_c file gives back this 500 error is the same like installing but this time is asking for for mysql driver that i had removed so i can make xataface working.


Xataface index is


<?php //Main Application access point require_once "/var/www/html/opencartdb/xataface/public-api.php"; df_init(__FILE__, "xataface")->display();


also the created app with xataface has a web.config file


<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.webServer> <security> <requestFiltering> <fileExtensions> <add fileExtension=".ini" allowed="false" /> </fileExtensions> </security> tem.webServer> </configuration></sys

2017/01/05 16:25:58 [error] 1657#1657: *206 FastCGI sent in stderr: "PHP message: PHP Warning: require_once(xf/db/drivers/mysql.php): failed to open stream: No such file or directory in /var/www/html/opencartdb/xataface/Dataface/Application.php on line 597
PHP message: PHP Fatal error: require_once(): Failed opening required 'xf/db/drivers/mysql.php' (include_path='.:/var/www/html/opencartdb/xataface:/var/www/html/opencartdb/xataface/lib:/usr/share/php') in /var/www/html/opencartdb/xataface/Dataface/Application.php on line 597" while reading response header from upstream, client: 192.168.1.3, server: xxxxxxxxx.ga, request: "GET /opencartdb/index.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "xxxxxxxxx.ga"


and this is php7.0-fpm.log


[05-Jan-2017 02:03:46] NOTICE: fpm is running, pid 1792
[05-Jan-2017 02:03:46] NOTICE: ready to handle connections
[05-Jan-2017 02:03:46] NOTICE: systemd monitor interval set to 10000ms
[05-Jan-2017 04:34:40] NOTICE: Terminating ...
[05-Jan-2017 04:34:40] NOTICE: exiting, bye-bye!
[05-Jan-2017 04:40:30] NOTICE: configuration file /etc/php/7.0/fpm/php-fpm.conf test is successful

ebuy-4-you

unread,
Jan 5, 2017, 12:47:10 PM1/5/17
to Xataface
this is the error when you create the templates_ file 

2017/01/05 19:35:30 [error] 1655#1655: *242 FastCGI sent in stderr: "PHP message: PHP Notice:  Uninitialized string offset: -1 in /var/www/html/opencartdb/xataface/init.php on line 34
PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function mysql_connect() in /var/www/html/opencartdb/xataface/Dataface/Application.php:576
Stack trace:
#0 /var/www/html/opencartdb/xataface/Dataface/Application.php(1048): Dataface_Application->Dataface_Application(Array)
#1 /var/www/html/opencartdb/xataface/public-api.php(58): Dataface_Application::getInstance(NULL)
#2 /var/www/html/opencartdb/index.php(3): df_init('/var/www/html/o...', 'templates_c')
#3 {main}
  thrown in /var/www/html/opencartdb/xataface/Dataface/Application.php on line 576" while reading response header from upstream, client: 192.168.1.3, server: xxxxxxxxx.ga, request: "GET /opencartdb/index.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "xxxxxxxxxx.ga"
 
Reply all
Reply to author
Forward
0 new messages