tottaz / yggdrasil Goto Github PK
View Code? Open in Web Editor NEWyggdrasil php framework for backend function - it is not an CMS
License: MIT License
yggdrasil php framework for backend function - it is not an CMS
License: MIT License
Hi,
First of all, thank you for the effort to share your codes. I am trying to use your code in xampp with PHP7.
After the installation and clicking login button gave me the following error:
Fatal error: Cannot use result of built-in function in write context in C:\xampp7\htdocs\restci\myapi2\app\helpers\My_array_helper.php on line 42
Any work around in this?
Thank you.
It assumes to much. Is vaguely described, and just plain confusing.
Please improve, or remove.
Hi,
Thanks for this great REST server!
It's installed and up and running, but in the UI I get the following PHP error on every page:
touch(): Unable to create file ci_sessions\yggdrasilf528764d624db129b32c21fbca0cb8d6a8jf96jqhjad74d03u2qrp6q09ld06m1
Filename: drivers/Session_files_driver.php
Line Number: 248
or
fopen(ci_sessions\yggdrasilf528764d624db129b32c21fbca0cb8d6p9ahsaq8u5dlia2282jimq4os7vrc468): failed to open stream: No such file or directory
Filename: drivers/Session_files_driver.php
Line Number: 172
The actual filename involved changes every time.
Any idea what could be causing this?
Thanks!
I have taken clone at path /var/www/html/ So code at my local laptop become /var/www/html/yggdrasil/
I am using ubuntu-16.04 (desktop version) and I have installed php5.6 at path /etc/php/5.6/
I am following document https://github.com/tottaz/yggdrasil/wiki/Installation and I have tried http://localhost/yggdrasil
and
http://localhost/yggdrasil/admin/users/login
and also
http://localhost/yggdrasil/index.php/admin/users/login
All 3 links generating error "404 Page Not Found"
I also have tried by rename .htaccess-install to .htaccess. It is generating error,
"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log"
I searched more more and observed that Content-Type in .htaccess file was used on basis of old apache version. I replaced .htaccess code
FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xhtml+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/rss+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/atom+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/vnd.ms-fontobject
FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-font-ttf
FilterProvider COMPRESS DEFLATE resp=Content-Type $font/opentype
FilterChain COMPRESS
FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
<IfVersion < 2.4.4>
FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xhtml+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/rss+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/atom+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/vnd.ms-fontobject
FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-font-ttf
FilterProvider COMPRESS DEFLATE resp=Content-Type $font/opentype
FilterChain COMPRESS
FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
<IfVersion >= 2.4.4>
FilterDeclare COMPRESS
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/html'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/css'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/plain'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/xml'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'text/x-component'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/javascript'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/json'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/xml'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/xhtml+xml'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/rss+xml'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/atom+xml'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/vnd.ms-fontobject'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'image/svg+xml'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'image/x-icon'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'application/x-font-ttf'"
FilterProvider COMPRESS DEFLATE "%{Content_Type} = 'font/opentype'"
FilterChain COMPRESS
FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
By this way, ## Internal Server Error has resolved.
I am expecting that installer inside /var/www/html/yggdrasil/ should execute as use any of the below the below URLs
The error which is I am still facing is that all 3 below URLs are generating ## error "404 Page Not Found"
http://localhost/yggdrasil
and
http://localhost/yggdrasil/admin/users/login
and also
http://localhost/yggdrasil/index.php/admin/users/login
I also have reviewed log at path /var/www/html/yggdrasil/installer/log-2018-04-13.php. It is showing errors something like:
ERROR - 2018-04-13 04:40:29 --> 404 Page Not Found: /index
ERROR - 2018-04-13 04:50:22 --> 404 Page Not Found: Admin/users
ERROR - 2018-04-13 04:50:45 --> 404 Page Not Found: Admin/index.php
ERROR - 2018-04-13 04:51:55 --> 404 Page Not Found: Admin/index.php
ERROR - 2018-04-13 05:40:50 --> 404 Page Not Found: /index
Please suggest. Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.