m1guelpf / Tasks

Simple tasks & notes manager written in PHP, jQuery and Bootstrap using a custom flat file database.
Mozilla Public License 2.0
108 stars 18 forks source link

500 error #4

Open smartrobot opened 7 years ago

smartrobot commented 7 years ago

I am trying to install on a digital ocean instance running ubuntu 16.04 and lamp. I have it in a sub directory and I have configured config.php and when I try to sign in nothing happens I hit f12 there was a post 500 error from signin_ajax.php

send @ jquery.min.js:5 ajax @ jquery.min.js:5 m.(anonymous function) @ jquery.min.js:5 (anonymous function) @ sign-in.js:154 dispatch @ jquery.min.js:4 r.handle @ jquery.min.js:4

m1guelpf commented 7 years ago

@smartrobot Did you configure the FlatFile DB? Also, could you provide the web server logs?

smartrobot commented 7 years ago

The Apache error log was empty in /var/apache2/error.log also I there was no mention of a FlatFile DB in the README.md if that is the case that might be the problem since it's not configured but I didn't see anywhere to put in a database or anything.

m1guelpf commented 7 years ago

@smartrobot There isn't any MySQL database, but you should chmod to 777 the data/ directory...

m1guelpf commented 7 years ago

@smartrobot We are offering a managed installation service, you can but it at Gumroad.

srinidhibs commented 6 years ago

When running from "master" with php5.3, even I was hitting this "500" error.

After a little bit of digging, turned out that issue was caused due to commit 9b1a5d9a9aca9e680c16e556226c8bf0aaf8e4b8 where all arrays were changed to use []

Errors that I could find are:

# php /srv/www/htdocs/tasks/includes/functions.php
PHP Parse error:  syntax error, unexpected '[' in /srv/www/htdocs/tasks/includes/functions.php on line 48

When I reverted the change introduced in 9b1a5d9, I then saw this in apache error log:

PHP Parse error:  syntax error, unexpected '[' in /srv/www/htdocs/tasks/ajax/signin_ajax.php on line 190

I finally downloaded the code before this commit - https://github.com/m1guelpf/Tasks/archive/73adefd97ca04fc3d75dfa7c95745778d306956a.zip - and everything worked as expected.

Hope this helps someone in resolving this issue.

m1guelpf commented 6 years ago

@srinidhibs What version of PHP are you using?

srinidhibs commented 6 years ago

@m1guelpf Here you go:

# rpm -q apache2-mod_php53
apache2-mod_php53-5.3.8-0.45.1

# php -v
PHP 5.3.8 (cli) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

System details:

# lsb_release -a
LSB Version:    core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
Distributor ID: SUSE LINUX
Description:    SUSE Linux Enterprise Server 11 (x86_64)
Release:        11
Codename:       n/a
m1guelpf commented 6 years ago

@srinidhibs You need to use at least PHP 5.4 (or revert that commit like you did).

srinidhibs commented 6 years ago

@m1guelpf sorry, I missed that detail in the README. Anyways, I've decided to use something else for now.

Thank you for developing this tool and your attention on this issue!