panichd icon indicating copy to clipboard operation
panichd copied to clipboard

/panichd url 404 not found error

Open ashi006 opened this issue 3 years ago • 19 comments

Hi, I've followed all the mentioned steps to install panichd. It installed successfully, got no error. But when I access /panichd url on my server, it says 404 not found. Please assist me in this regard.

ashi006 avatar Feb 09 '21 00:02 ashi006

Hello @ashi006,

What Laravel version do you use? Which installation steps did you follow? The web installer or CLI?

xaviqv avatar Feb 11 '21 21:02 xaviqv

Hi @xaviqv,

Thanks for getting back to me. I was able to resolve the problem, now it is successfully installed. Actually the problem was at my end. I had multiple instances of the same package installed which were conflicting with eachother, hence I was unable to access the url.

ashi006 avatar Feb 13 '21 20:02 ashi006

But I do have other issues. I found some bugs in the package features. Can I ask about them in this issue or Shall I create a new one?

ashi006 avatar Feb 13 '21 21:02 ashi006

Hi @ashi006 ,

Thanks for your quick feedback!

For the other issues please tell me here and we can discuss later if any of them would better fit in a dedicated issue.

xaviqv avatar Feb 14 '21 15:02 xaviqv

Hi @xaviqv,

Firstly I have a question. I want to make changes in the "Create Member" form, I have to add username field in that form.

How to update default views and controllers to add own logic?

Like should I update package's views/controller files directly? Or shall I have to extend those files to update the code to meet my requirements?

ashi006 avatar Feb 15 '21 13:02 ashi006

And the issues I have found are mentioned below:

  1. When accessing Search page using admin account, an alert box pops up

Search-page-error

  1. I'm unable to create new tickets, it returns an error when I submit create ticket form. In the browser console it prints the following line: Failed to load resource: the server responded with a status of 500 (Internal Server Error) /tickets:1 And in the laravel logs file, it shows this: [2021-02-13 20:53:41] local.ERROR: Configuration parameters not loaded! {"userId":19,"exception":"[object] (Exception(code: 0): Configuration parameters not loaded! at /var/www/html/ClearPicturePortal/vendor/mews/purifier/src/Purifier.php:65)

ashi006 avatar Feb 15 '21 13:02 ashi006

Hi @xaviqv,

Firstly I have a question. I want to make changes in the "Create Member" form, I have to add username field in that form.

How to update default views and controllers to add own logic?

Like should I update package's views/controller files directly? Or shall I have to extend those files to update the code to meet my requirements?

Hi,

The only way I would do local changes of an installed Laravel package in vendor folder is by initiating git in the Package folder, so after any composer update all the done job is not gone. With this method, in our case, I guess you can modify controllers, routes and models, safely, but views have been published after installation or upgrade, so you will find them under resources/views/vendor/panichd

In case you try to extend PanicHD functionality using Laravel tools instead of replacing package files, you should keep in mind:

  • You may update published views with your own content, but remember that PanicHD web installer replaces them after any package update.
  • To replace a controller functionality, you could try to create your own routes in your Laravel app, being aware of Laravel route precedence.
  • Model files could be replaced within custom controllers

I'm sorry I have not tested this kind of customizations with PanicHD, so I don't know what limitations or error would you encounter with it. In any case, I recommend you to test everything before moving it to a production environment. Good luck!

xaviqv avatar Feb 17 '21 22:02 xaviqv

Hi @ashi006 ,

I will answer within your message:

And the issues I have found are mentioned below:

  1. When accessing Search page using admin account, an alert box pops up

Please look at Laravel log to see if there is a more specific error message that can help us.

  1. I'm unable to create new tickets, it returns an error when I submit create ticket form. In the browser console it prints the following line: Failed to load resource: the server responded with a status of 500 (Internal Server Error) /tickets:1 And in the laravel logs file, it shows this: [2021-02-13 20:53:41] local.ERROR: Configuration parameters not loaded! {"userId":19,"exception":"[object] (Exception(code: 0): Configuration parameters not loaded! at /var/www/html/ClearPicturePortal/vendor/mews/purifier/src/Purifier.php:65)

I don't know exactly what's happening, but I would try to:

  1. Access yourwebsite/panichd to see if there is any configuration setting pending to install
  2. If no configuration was pending, try the command: php artisan config:cache and try again
  3. I have noticed recently that if you have not correctly set a notifications email, submitting a new ticket crashes. It doesn't look like to be the case of your error, but I tell you just in case.

xaviqv avatar Feb 17 '21 22:02 xaviqv

Hi @xaviqv,

Please look at Laravel log to see if there is a more specific error message that can help us.

This is what I found in logs file:

[2021-02-18 14:08:28] local.ERROR: Target class [Yajra\Datatables\Datatables] does not exist. {"userId":1,"exception":"[object] (Illuminate\\Contracts\\Container\\BindingResolutionException(code: 0): Target class [Yajra\\Datatables\\Datatables] does not exist. at /var/www/html/ClearPicturePortal/vendor/laravel/framework/src/Illuminate/Container/Container.php:805)

ashi006 avatar Feb 18 '21 14:02 ashi006

Hi @ashi006 ,

It seems that you have some error in Datatables package installation, which is a package required by PanicHD and it has to be installed automatically once you install PanicHD via composer. As mentioned in a similar issue in Stackoverflow, you could try the following commands:

  1. composer update
  2. php artisan config:cache
  3. php artisan cache:clear

If it still doesn't work, please check if Datatables package is really installed in your app (it should be under "vendor\yajra\laravel-datatables-oracle") and please tell me in which Laravel version are you using PanicHD and over which Operating System.

xaviqv avatar Feb 18 '21 22:02 xaviqv

Hi @xaviqv,

When accessing Search page using admin account, an alert box pops up

I did what you mentioned in your last comment and this issue has been resolved. Thanks

ashi006 avatar Feb 19 '21 17:02 ashi006

But there is one thing that I want to ask regarding search page. When I'm logged in as simple user, Search menu appears in the Menu bar but when I click on it then it says you're not permitted to access this page.

If the user is not allowed to access search page, then the menu bar should not have Search menu item.. My question is how to remove "Search" from menu bar (for users)?

search-visible-customer

ashi006 avatar Feb 19 '21 17:02 ashi006

Hi @xaviqv,

The issue with "Create New Ticket" has also been resolved. I think composer update came for its rescue as well.. :)

ashi006 avatar Feb 19 '21 18:02 ashi006

The issue with "Create New Ticket" has also been resolved. I think composer update came for its rescue as well.. :)

But now I've other problems:

  1. "My Tickets" page is only showing first ticket. I have 3 tickets against this user in DB and Active tab also shows count of 3, but the datatable displays only 1 ticket. image

  2. In "Create Ticket" form, I expected it to have just a text field having email of the signed in user. But the owner label has a dropdown against it displaying all the users in DB (I think this behavior is not intended for simple users but for admins/agents). image

ashi006 avatar Feb 19 '21 18:02 ashi006

Hi @ashi006,

The Search button should not appear for any member. Thanks for pointing this out. I've added this in my to do list.

The behavior of viewing just one ticket from an user, when you expect to view 3, could happen if that user is the creator of the other tickets but they have another user assigned as the owner. You should check these tickets with any admin / agent account or looking for the corresponding rows in panichd_tickets table in your database.

The fact that a common Member can choose another member as the ticket owner is totally intended, and it's meant to help in a company environment. Imagine the following example: An employee can't start her computer, so she asks a team mate to register a ticket for IT department in her name. In that registered ticket, you are going to see the affected employee as the ticket owner, but next to the owner name, an "user" icon with a tooltip that will inform of the member who registered the ticket. When the affected employee is able to access tickets with her login, she's going to see that ticket as It was created by her.

Anyway, you can disable this functionality easily, publishing and editing "vendor\panichd\panichd\src\views\tickets\createedit\form.blade.php".

xaviqv avatar Feb 25 '21 22:02 xaviqv

Hi @xaviqv,

Thanks a lot for your response and help. Much appreciated :-)

Can you just leave this issue open? As I may need to ask more questions in future.

ashi006 avatar Mar 02 '21 22:03 ashi006

Hi @ashi006,

You're welcome! I'm glad you finally get PanicHD working fine.

I always keep solved issues in PanicHD open to let other users easily see them. I would suggest you to add coments on this one if you're not sure if the cause of your new issue is about any configuration problem in your app, but for any other case like PanicHD bugs, suggestions for enhacements or any other feedback it would be better to add a new issue to treat them separatedly, to let me help you better and to give that new issue the right visibility, as If that's the case, other people with the same issue will find it more easily.

xaviqv avatar Mar 06 '21 16:03 xaviqv

Hi @xaviqv,

Alright. Thanks again and PanicHD is working fine now so I don't think I would have any new issues related to installation or configuration of PanicHD.. :-)

ashi006 avatar Mar 07 '21 19:03 ashi006

Hi, I've followed all the mentioned steps to install panichd. It installed successfully, got no error. But when I access /panichd url on my server, it says 404 not found. Please assist me in this regard.

Hi @ashi006,

This time I would be really grateful if you give me some additional feedback from this issue. Do you remember what was wrong in your PanicHD installation when you were getting 404 error accessing /panichd URL and you made it finally work?

I'm reviewing the open issues and it seems to be something usual, and I don't know if there's anything in the PanicHD installation steps that is wrong or not enough clear.

Thanks in advance!

xaviqv avatar May 26 '21 21:05 xaviqv