cantondog / Timesheet

Timesheet (or Timecard) app for a set of users.
6 stars 2 forks source link

File writing issue #1

Open GeorgelT opened 7 years ago

GeorgelT commented 7 years ago

Hello I'm currently trying to find a Timesheet app for our office. After going through multiple now defunct project I finally discovered your project. Based on the screenshots it looks like just what I'm looking for.

I'm created the database, added all the tables, I've updated all the info in database.php also changed the address inside bootstrap.php .

When I go to the address I get a HTTP 500 error and nothing more. The PHP logs have the following errors inside: [26-Sep-2017 14:46:20 UTC] PHP Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /srv/www/wordpress-automesh/GITTime/lib/Cake/Cache/Cache.php on line 308 [26-Sep-2017 14:46:20 UTC] PHP Warning: /srv/www/wordpress-automesh/GITTime/app/tmp/cache/persistent/ is not writable in /srv/www/wordpress-automesh/GITTime/lib/Cake/Cache/Engine/FileEngine.php on line 336 [26-Sep-2017 14:46:20 UTC] PHP Warning: /srv/www/wordpress-automesh/GITTime/app/tmp/cache/models/ is not writable in /srv/www/wordpress-automesh/GITTime/lib/Cake/Cache/Engine/FileEngine.php on line 336 [26-Sep-2017 14:46:20 UTC] PHP Fatal error: Cannot use 'String' as class name as it is reserved in /srv/www/wordpress-automesh/GITTime/lib/Cake/Utility/String.php on line 26 [26-Sep-2017 14:46:20 UTC] PHP Warning: _cake_core_ cache was unable to write 'file_map' to File cache in /srv/www/wordpress-automesh/GITTime/lib/Cake/Cache/Cache.php on line 308

I have chmoded reccursively with 777 and have manually created the /tmp/cache/persistent and .../models folders. Both of them have the right permissions. Form what I can tell from the error message it is something inside the php code that might be causing the problem.

Any steps I can take to get it to work. I would really love to get a working webbased timesheet for out office.

cantondog commented 7 years ago

Hi there, it looks like the important line if the Fatal error here

[26-Sep-2017 14:46:20 UTC] PHP Fatal error: Cannot use 'String' as class name as it is reserved in /srv/www/wordpress-automesh/GITTime/lib/Cake/Utility/String.php on line 26

Which is a Cake file. I've never had an issue with that particular file so you likely need to start there. I'm not maintaining the project anymore (which is one of the reasons I put it here for others). I'm glad you found it and I hope you can get it working. It might be an issue with your apache configuration but that's just a guess.

The warnings you're getting should be looked at, but those won't throw a 500 error on you. Only the Fatal error will.

On Tue, Sep 26, 2017 at 7:53 AM, GeorgelT notifications@github.com wrote:

Hello I'm currently trying to find a Timesheet app for our office. After going through multiple now defunct project I finally discovered your project. Based on the screenshots it looks like just what I'm looking for.

I'm created the database, added all the tables, I've updated all the info in database.php also changed the address inside bootstrap.php .

When I go to the address I get a HTTP 500 error and nothing more. The PHP logs have the following errors inside: [26-Sep-2017 14:46:20 UTC] PHP Warning: _cakecore cache was unable to write 'cake_dev_en-us' to File cache in /srv/www/wordpress-automesh/ GITTime/lib/Cake/Cache/Cache.php on line 308 [26-Sep-2017 14:46:20 UTC] PHP Warning: /srv/www/wordpress-automesh/GITTime/app/tmp/cache/persistent/ is not writable in /srv/www/wordpress-automesh/ GITTime/lib/Cake/Cache/Engine/FileEngine.php on line 336 [26-Sep-2017 14:46:20 UTC] PHP Warning: /srv/www/wordpress-automesh/GITTime/app/tmp/cache/models/ is not writable in /srv/www/wordpress-automesh/ GITTime/lib/Cake/Cache/Engine/FileEngine.php on line 336 [26-Sep-2017 14:46:20 UTC] PHP Fatal error: Cannot use 'String' as class name as it is reserved in /srv/www/wordpress-automesh/GITTime/lib/Cake/Utility/String.php on line 26 [26-Sep-2017 14:46:20 UTC] PHP Warning: _cakecore cache was unable to write 'file_map' to File cache in /srv/www/wordpress-automesh/ GITTime/lib/Cake/Cache/Cache.php on line 308

I have chmoded reccursively with 777 and have manually created the /tmp/cache/persistent and .../models folders. Both of them have the right permissions. Form what I can tell from the error message it is something inside the php code that might be causing the problem.

Any steps I can take to get it to work. I would really love to get a working webbased timesheet for out office.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cantondog/Timesheet/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/ADEXasnjSSB4fruNdjj___Yhr-_9gw_vks5smQ_VgaJpZM4PkYXc .

GeorgelT commented 7 years ago

Hello,

I've been able to make some progress with this. It seems it's a bug/old version of cakePHP. Can you tell me how I can update cakePHP without braking everything else? Or better said, which files have been modified by you, and which ones are default cakePHP files?

If I overwrite the lib folder only, it doesn't work. I'm slowly hacking my way through the code, but I still can't get it to work.

cantondog commented 7 years ago

Part of the reason you use a framework is so that you don't need to modify any of the 'core' files. So anything coming from Cake I wouldn't have modified at all.

On Wed, Sep 27, 2017 at 5:20 AM, GeorgelT notifications@github.com wrote:

Hello,

I've been able to make some progress with this. It seems it's a bug/old version of cakePHP. Can you tell me how I can update cakePHP without braking everything else? Or better said, which files have been modified by you, and which ones are default cakePHP files?

If I overwrite the lib folder only, it doesn't work. I'm slowly hacking my way through the code, but I still can't get it to work.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cantondog/Timesheet/issues/1#issuecomment-332502764, or mute the thread https://github.com/notifications/unsubscribe-auth/ADEXatxOd1CdkhIRI0WDfbDYlxK19YsYks5smj19gaJpZM4PkYXc .

GeorgelT commented 7 years ago

I know, that's why I'm asking where are files created by you stored. I sort of got it to work, I can login, but still have errors. The CSS and overall design isn't loading, the tables are also not loading. It would be rally great if you could tell me what I need to keep.