prashants / webzash

Easy to use web based double entry accounting software in PHP - MySQL under MIT License
http://webzash.org
Other
208 stars 109 forks source link

Webzash-v2.7 files corrupt? #94

Closed Syenta closed 6 years ago

Syenta commented 6 years ago

I have been trying for a few days to get Webzash-v2.7 to run on my system. Finally I gave up and downloaded Webzash-v2.6 and it worked first time.

With Webzash-v2.7 all I was unable to do was "http://localhost/webzash-v2.6/webzash" and it would return an 500 error, if I remember correctly.

Hope this helps

prashants commented 6 years ago

Some people reported errors with the 2.7 setup, but I am not able to pinpoint the exact reason for it.

What kind of setup are you using ?

prashants commented 6 years ago

Can you provide more details of the setup you are using.

jacksumit commented 6 years ago

I am also facing the same issue. I tried debugging and below are the findings so far.

Looks like php is facing issue with below line of code in webroot/index.php

if (!include 'Cake' . DS . 'bootstrap.php') { $failed = true; }

Error 500 do not happens if I Comment out these lines of codes and all the code after these lines. Error 500 reappears when above lines are Uncommented (while keeping all the code after these lines commented)

prashants commented 6 years ago
  1. Are you using a clean setup or you have updated just the plugin ?

  2. Can you give me details of the setup you are using.

  3. Whether the location of file is "app/webroot/index.php"

  4. One thing you can try is enable the debug mode in app/Config/core.php

    Configure::write('debug', 2);

I have tested it on Linux with XAMPP with PHP 5 and 7 and I am not facing any issues.

jacksumit commented 6 years ago

It started working after setting Configure::write('debug', 2);

prashants commented 6 years ago

@jacksumit So just by setting the debug parameter to 2 everything is working and no further changes are required ?

@Syenta can you please confirm whether it works on your end so that I can close this issue.

jacksumit commented 6 years ago

Yes, it started working just by changing debug parameter.

prashants commented 6 years ago

Everything is fixed in the new release. Download the latest version v2.7 from website. Incase if any other problems please reopen this issue.