Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't edit users #49

Closed
desynergy opened this issue Jun 5, 2014 · 8 comments
Closed

Can't edit users #49

desynergy opened this issue Jun 5, 2014 · 8 comments
Labels
troubleshooting Support with current features

Comments

@desynergy
Copy link

Hi guys. Like the script so far. But after testing and playing with it, I found that I couldnt edit users.

When I click the drop down box, and choose Edit User, I get the error:
Oops, looks like our server might have goofed. If you're an admin, please check the PHP error logs.

I check the logs, and nothing is showing up except a bunch of:
[Thu Jun 05 17:16:52 2014] [error] [client XX.XXX.XXX.XX] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function.

I even tried a fresh install to make sure it wasnt anything I messed up while playing with the code.

-sh-4.1$ php -v
PHP 5.4.29 (cli) (built: Jun 1 2014 19:30:18)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd.

@lilfade
Copy link
Contributor

lilfade commented Jun 5, 2014

Hmm that means your date time is most likely not setup in the php.ini file it should look like this:

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York

if you cant edit your php.ini file you can try to add this to config.php:

date_default_timezone_set('America/New_York');

Try to fix that error to make sure thats all thats holding you back from running the script, Also are you using master we have a new branch thats being consistently updated called butterflyknife its a huge improvement over the last version so far ... in my opinion.

@desynergy
Copy link
Author

Sorry for the delay. Yes, that was it. I didnt think that would be the cause and I configured PHP for the time zone and it cured the error. Didnt have a chance to come back and update this earlier.

I am using the master version. Havent tried the butterflyknife version yet. I'll do that next. :)

@lilfade
Copy link
Contributor

lilfade commented Jun 6, 2014

Its nice accually very nice but keep in mind it is a dev version and we do make alot of commits to it still so if you are willing to use that to build off of just remember at any moment a function you rely on for your code may break when you update, but we do try to keep functionality intact even so.

Mostly if you edit core files you will have to manually make the new edits to keep the code base up until we have a product were happy with to commit to master. (and by we i mean @alexweissman ^_^ )

@alexweissman
Copy link
Member

Haha, @lilfade you've been doing a lot of great work, too.

@lilfade
Copy link
Contributor

lilfade commented Jun 6, 2014

I try at least, i always admit im no pro just self learned and try to find the best way to do something (i still suck with js but im learning xD)

@lilfade
Copy link
Contributor

lilfade commented Jun 9, 2014

Think we can close this issue and maybe add

date_default_timezone_set('America/New_York');

into config.php as commented out in case people have this timezone issue again they can come back here and uncomment it and do a quick fix rather then going to php.ini file maybe also a description of what this is for as well.

@alexweissman
Copy link
Member

Agreed. A good future feature would be support for different user timezones.

@alexweissman
Copy link
Member

Added timezone support to the master task list, so closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
troubleshooting Support with current features
Projects
None yet
Development

No branches or pull requests

3 participants