Coder Social home page Coder Social logo

tottaz / yggdrasil Goto Github PK

View Code? Open in Web Editor NEW
27.0 27.0 30.0 73.5 MB

yggdrasil php framework for backend function - it is not an CMS

License: MIT License

PHP 21.32% HTML 25.43% CSS 7.71% JavaScript 44.28% CoffeeScript 0.34% Shell 0.04% ActionScript 0.07% Ruby 0.02% Hack 0.09% Less 0.21% SCSS 0.49% ASP.NET 0.01%
codeigniter codeigniter3 mvc-framework php rest-api

yggdrasil's People

Contributors

tottaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yggdrasil's Issues

Yggdrasil not working in PHP7?

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.

Problems accessing the yggdrasil cookies

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!

404 Page Not Found for yggdrasil

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

with the below code

<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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.