GithubHelp home page GithubHelp logo

Comments (18)

fusiondesign avatar fusiondesign commented on August 16, 2024

Yeah, same problem I ran into. I have never seen the unserialize method used so I'm not sure about a fix. It's basically saying that it ran into some bad data while trying to unserialize. I can't figure out why or proper steps to debug since the Model objects are so large

from ticketit.

fishmad avatar fishmad commented on August 16, 2024

It was working fine 1 hour ago, so I don't think its related to the authenticated users as its now happening to all admin,agent and user,

The only things I have changed in the last hour is: delete all my Statuses and Removed all Agents via admin UI, I then re-added some Statuses and Agents and the auto incrementing MySQL IDs are higher - Statuses now start a #7 instead of the original #1 - I recalled seeing something in the code about #1 being the default assigned to new tickets - might be something worth looking at.

from ticketit.

fusiondesign avatar fusiondesign commented on August 16, 2024

Can you try removing {!! Form::hidden('agent_id', 'auto') !!} from the ticket create form and tell me if it fixes it? That's the only change to the repo

from ticketit.

fishmad avatar fishmad commented on August 16, 2024

Confirmed: reset first SQL row for Statuses to ID 1 and it worked, the email sent fine.

from ticketit.

fusiondesign avatar fusiondesign commented on August 16, 2024

Did you update
'default_status_id' => 1, in config?

from ticketit.

fusiondesign avatar fusiondesign commented on August 16, 2024

If an improper value is set there, it may be the cause of all serialize problems. Please confirm! :)

from ticketit.

fishmad avatar fishmad commented on August 16, 2024

My 'default_status_id' => 1,

but my database rows started at 7 because I deleted all my statuses earlier tonight

from ticketit.

fusiondesign avatar fusiondesign commented on August 16, 2024

If you change back to 7 and change config to 7, does it also still work?

from ticketit.

fishmad avatar fishmad commented on August 16, 2024

I just tried, changed both config and DB to 7 and the email worked.

than just to check again I changed config to random number of 4 left DB at 7 and it crashed while trying to submit new ticket

from ticketit.

fusiondesign avatar fusiondesign commented on August 16, 2024

Perfect. Now we know what causes it! I'll throw that into a common problems area somewhere.

from ticketit.

thekordy avatar thekordy commented on August 16, 2024

from ticketit.

fusiondesign avatar fusiondesign commented on August 16, 2024

This config is growing quiet large for a config, I'd have to agree on the admin panel. Plus if we have an admin config table, we can control the IDs going in and out for default status via relationships.

from ticketit.

fusiondesign avatar fusiondesign commented on August 16, 2024

Added to wiki for now until 0.3 or 0.4:
https://github.com/thekordy/ticketit/wiki/Common-problems

from ticketit.

fishmad avatar fishmad commented on August 16, 2024

You could do a similar crud for language localizations, just not too sure what impact is would have on performance with all those extra queries - I did found a nice package that will scan files for trans() and automatically import these into the database for editing the text values.
https://github.com/barryvdh/laravel-translation-manager

from ticketit.

fusiondesign avatar fusiondesign commented on August 16, 2024

We can always Cache the database results for 1 month and make the "Save" button in the admin console flush the cache.

from ticketit.

fusiondesign avatar fusiondesign commented on August 16, 2024

This has the added benefit of migrations essentially allowing us to version control our config

from ticketit.

fusiondesign avatar fusiondesign commented on August 16, 2024

Welcome to the team btw Fishmad!

from ticketit.

thekordy avatar thekordy commented on August 16, 2024

I did found a nice package that will scan files for trans() and automatically import these into the database for editing the text values.
https://github.com/barryvdh/laravel-translation-manager

@fishmad It looks promising, We can give it a testing round and find if it integrates smoothly and if it is easy to use. then we can implement it in the same version with admin panel upgrade

We can always Cache the database results for 1 month and make the "Save" button in the admin console flush the cache.

@fusiondesign for the config settings, I think it won't be that much load as we can use only one query to load all settings, but I am not sure about the translation panel, does it load translations from database for front-end? or it just for translation modifications then it exports changes back to the translation files?

from ticketit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.