Tasks icon indicating copy to clipboard operation
Tasks copied to clipboard

500 error

Open smartrobot opened this issue 8 years ago • 9 comments

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

smartrobot avatar Feb 07 '17 22:02 smartrobot

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

m1guelpf avatar Feb 08 '17 00:02 m1guelpf

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.

smartrobot avatar Feb 09 '17 01:02 smartrobot

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

m1guelpf avatar Feb 09 '17 08:02 m1guelpf

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

m1guelpf avatar Oct 31 '17 08:10 m1guelpf

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.

srinidhibs avatar Dec 18 '17 14:12 srinidhibs

@srinidhibs What version of PHP are you using?

m1guelpf avatar Dec 18 '17 14:12 m1guelpf

@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

srinidhibs avatar Dec 20 '17 13:12 srinidhibs

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

m1guelpf avatar Dec 20 '17 15:12 m1guelpf

@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!

srinidhibs avatar Dec 25 '17 11:12 srinidhibs