Quantcast
Channel: Recent Discussions on osTicket Forums
Viewing all 7550 articles
Browse latest View live

500 Internal Server Error

$
0
0
Hello ...

i have the following problem:

- I have a Strato web account
- I upload all files to my account and create a database
- I renamed the file "ost-sampleconfig.php" to "ost-config.php"
- I change every file and folder to "777" (only for testing)
- I run the webbased configuration setup and fill out all fields

Now comes the problem ... after i click the "Install Now" button i get a "500 Internal Server Error" page ... nothing else. When i look into the database the tables are created successfully but nothing else happens. when i go to my url again the setup script starts again. (But now with the error that the tables already exist)

Can somebody help me ...? :confused::confused::confused:

Date/time trouble with custom field

$
0
0
Hello community! I'm evaluating osTicket to see if it would be a good fit for my purposes. Our field techs are self-dispatched, meaning that we respond directly to customer trouble reports and deal with the paperwork afterwards. This may be done on the same day or a day or two after the service was completed. As such, I have added a custom date/time field to the Ticket Details section named Service Date to hold the actual date the service was performed. Normally this would be just a date field but I added the time for troubleshooting purposes. The date/time displays differently depending on where I look. For example:

Click new ticket > Enter required fields as necessary and select a value for Service Date. Example 06/01/2017 00:00
Click Open to open the new ticket > Ticket view shows Service Date value -4 hours (05/31/2017 20:00)
Edit ticket > Service Date value shows -24 hours (05/31/2017 00:00)
DB shows correct original Service Date value (06/01/2017 00:00)
Print to PDF > Service Date value shows as -4 hours matching ticket view. (05/31/2017 20:00)
Also, perhaps related, the time stamp on the PDF is +4 hours.

I have attached some clips including system information.

Settings > System > Default Time Zone = America/New_York
Agent > Profile > Time Zone = America/New_York
phpMyAdmin > Variables > system time zone = EDT
Server shows correct time and EDT suffix after the time.

I appreciate any help.

Little showcase of my take on osTicket

$
0
0
Hey guys, I really learned a lot about php, html and mysql while using osTicket and this fantastic forum. I'd like to thank all the staff for creating such a nice product that is both easy to use and customize. I'm always having a good laugh when suddenly a funny comment pops up while scrolling through code.

I would love to give a bit back to you guys, not sure how capable I am though in helping you fit things into your environment. So I thought the best way would be to showcase the functions and design I added and if you think something would fit your system, just ask and I'll try my best to help.

Some things not visible: The inbox icon after the name serves as a dropdown button for unread messages or mentions. Staff can mention someone with @Name and he/she will get a notification in the dropdown menu (looks like the one from status change for example). The notifications are clickable and lead to the ticket where you were mentioned in or where there are unread messages.

The dashboard has a news section where our agents can add news items (again, an image serves as a button for a dropdown menu). If you're on the ticket page and someone posts news, another notification will pop up in your inbox.

Code for the refresh is really ugly at the moment though, it's basically existing two times in tickets.php and header.inc.php for it to refresh with the set ticket page refresh time from osTicket. So if someone could give me a hint how to handle that better, I would really appreciate that. If I take it out of header.inc.php, the inbox will stay empty on all pages except tickets.php, that's why I put it there in the first place (should probably be in header.php though, right?)

Cheers, Martin

image

[MOD] Inline PDF

$
0
0
So, I've finally upgraded, and wanted to restore my previews mod, but didn't want to have to generate preview images again.. that was horrible and sometimes didn't work. 

This time, I've spent a few hours figuring out the plugin interfaces.. and generally failing to figure them out. :-(

Got it to work anyway. 


image

Basically, it takes PDF's or Images and embeds them in the thread entries responsible for uploading them. Without modifying core! :D My best mod yet. The PDF is fully scrollable/rotatable/printable etc, the links are preserved should you need to download them. Images are linked to the full image and are not rotated etc, the PDF rendering is fully standard browser dependant etc..  Tested with Firefox/Chrome/IE11, not successful on IE11.. can't figure out why, as browser is broken. Added a message about the browser sucking and providing the normal link.. This also happens in Opera if you don't have a PDF plugin.

It's pretty simple, the bulk of the work is done in javascript, which get's injected into the footer. Tested and works on 1.8-git. SHOULD work on future versions, depending on how the files are attached.. haven't tested on anything else though, let me know! This means it gracefully falls back to complete stock by disabling javascript, and the plugin is self-contained, so ZERO MODS to core are required. You simply clone the repo or download the zip from github and extract into /includes/plugins/ which should make a folder: "pdf_preview", but it could be called anything. 

Current features:
  • PDF Files attached to a thread entry (note/message/reply etc) are embedded as full PDF objects in the entry.
  • Images attached to a thread entry are inserted as normal <img> tags.
  • png
  • jpg
  • gif
  • svg
  • bmp
Text files attached to a thread entry are fetched via AJAX and inserted into the thread entry using <pre> (If enabled). HTML files are also fetched via AJAX and inserted (If enabled). Detects pjax and falls back to stock jQuery if not found.
Message me if you want more features, I'm thinking of adding a "Tick the box extension selection" or something to pick what to display.

TODO:
  • Extrude CSS into file
  • Add admin options for file-types
  • Maybe modify the output in PHP rather than JS.. haven't decided, see what people say. This is working for now.

Dashboard | Service Time

$
0
0
Good day! 

Hi Masters, 

May I know how to read the Service Time under Dashboard statistics? 

Thank you! :) 

DB Error #1064 constantly appears

$
0
0
Hi, I installed osTicket v1.10 (stable) with MySQL (MariaDB) v5.5.55 and PHP v5.6.30. Full installation info is attached.
But I always get the DB Error #1046 like the following:

[CREATE TABLE IF NOT EXISTS `ost_ticket__cdata` (PRIMARY KEY
               (ticket_id)) DEFAULT CHARSET=utf8 AS SELECT entry.`object_id` as `ticket_id`,  FROM ost_form_entry entry
           JOIN ost_form_entry_values ans ON ans.entry_id = entry.id
           JOIN ost_form_field field ON field.id=ans.field_id
           WHERE entry.object_type='T' GROUP BY entry.object_id]

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM ost_form_entry entry
           JOIN ost_form_entry_values ans ON ans.entr' at line 2<br />
<br />
---- Ablaufverfolgung ----<br />
#0 (root)/include/mysqli.php(204): osTicket->logDBError('DB Error #1064', '[CREATE TABLE I...')<br />
#1 (root)/include/class.dynamic_forms.php(292): db_query('CREATE TABLE IF...')<br />
#2 (root)/include/class.dynamic_forms.php(285): DynamicForm::buildDynamicDataView(Array)<br />
#3 (root)/include/staff/tickets.inc.php(371): DynamicForm::ensureDynamicDataView()<br />
#4 (root)/scp/tickets.php(492): require_once('/homepages/38/d...')<br />
#5 (root)/scp/index.php(17): require('/homepages/38/d...')<br />
#6 {main}

At the same server I also have osTicket v1.9.15 running which works absolutely fine.

The error message tells that there is an error in the SQL syntax. It looks like that the SQL Server has an issue with the received DB calls. But according to a previous request from me the SQL version should be OK.

How to proceed best from here? 




Bugfix: redactor-plugins.js > Double Entry Delete Row

$
0
0
For correct function change line 492 from " dropdown.delete_row = { " to  " dropdown.delete_table = { "

Only with this change the menu items "Delete Row" and "Delete Table" are displayed and working correctly.

Best regards,
Jürgen

Departmental SLAs

$
0
0
Does anyone know how I can make it so depending on what departemnt a ticket is in automatically changes the SLA assigned to it?

osTicket v1.10 DB Error #1054

$
0
0
Hello everyone,

My installation (fresh)

Version osTicket: v1.10 (901e5ea)
Webserver:
Apache/2.4.10 (Debian)
MySQL:
5.5.54
PHP:
5.6.30-0+deb8u1

DB Error #1054

[SELECT A4.`staff_id` AS `lock__staff_id`, A1.`staff_id` AS `staff_id`, A1.`isoverdue` AS `isoverdue`, A1.`team_id` AS `team_id`, A1.`ticket_id` AS `ticket_id`, A1.`number` AS `number`, A2.`subject` AS `cdata__subject`, A6.`address` AS `user__default_email__address`, A1.`source` AS `source`, A3.`priority_color` AS `cdata__:priority__priority_color`, A3.`priority_desc` AS `cdata__:priority__priority_desc`, A1.`status_id` AS `status_id`, A7.`name` AS `status__name`, A7.`state` AS `status__state`, A1.`dept_id` AS `dept_id`, A8.`name` AS `dept__name`, A5.`name` AS `user__name`, A1.`lastupdate` AS `lastupdate`, A1.`isanswered` AS `isanswered`, B0.`firstname` AS `staff__firstname`, B0.`lastname` AS `staff__lastname`, B1.`name` AS `team__name`, (SELECT COUNT(R0.`id`) AS `count` FROM `ost_thread` Q7 JOIN `ost_ticket` Q8 ON (Q7.`object_type` = 'T' AND Q7.`object_id` = Q8.`ticket_id`) LEFT JOIN `ost_thread_collaborator` R0 ON (Q7.`id` = R0.`thread_id`) WHERE Q8.`ticket_id` = A1.`ticket_id`) AS collab_count, (SELECT COUNT(R1.`id`) AS `count` FROM `ost_thread` Q7 JOIN `ost_ticket` Q8 ON (Q7.`object_type` = 'T' AND Q7.`object_id` = Q8.`ticket_id`) LEFT JOIN `ost_thread_entry` R0 ON (Q7.`id` = R0.`thread_id`) LEFT JOIN `ost_attachment` R1 ON (R1.`type` = 'H' AND R0.`id` = R1.`object_id`) WHERE Q8.`ticket_id` = A1.`ticket_id` AND R1.`inline` = 0) AS attachment_count, (SELECT COUNT(R0.`id`) AS `count` FROM `ost_thread` Q7 JOIN `ost_ticket` Q8 ON (Q7.`object_type` = 'T' AND Q7.`object_id` = Q8.`ticket_id`) LEFT JOIN `ost_thread_entry` R0 ON (Q7.`id` = R0.`thread_id`) WHERE Q8.`ticket_id` = A1.`ticket_id` AND NOT R0.`flags` & 4 != 0) AS thread_count FROM `ost_ticket` A1 LEFT JOIN `ost_ticket__cdata` A2 ON (A1.`ticket_id` = A2.`ticket_id`) LEFT JOIN `ost_ticket_priority` A3 ON (A2.`priority` = A3.`priority_id`) LEFT JOIN `ost_lock` A4 ON (A1.`lock_id` = A4.`lock_id` AND A4.`expire` > NOW()) JOIN `ost_user` A5 ON (A1.`user_id` = A5.`id`) LEFT JOIN `ost_user_email` A6 ON (A5.`default_email_id` = A6.`id`) JOIN `ost_ticket_status` A7 ON (A1.`status_id` = A7.`id`) JOIN `ost_department` A8 ON (A1.`dept_id` = A8.`id`) LEFT JOIN `ost_staff` B0 ON (A1.`staff_id` = B0.`staff_id`) LEFT JOIN `ost_team` B1 ON (A1.`team_id` = B1.`team_id`) WHERE A1.`ticket_id` IN (SELECT A1.`ticket_id` FROM `ost_ticket` A1 JOIN `ost_ticket_status` A2 ON (A1.`status_id` = A2.`id`) WHERE A1.`isanswered` = 0 AND A2.`state` = 'open' AND ((A2.`state` = 'open' AND A1.`staff_id` = 1) OR A1.`dept_id` IN ('1'))) GROUP BY A4.`staff_id`, A1.`staff_id`, A1.`isoverdue`, A1.`team_id`, A1.`ticket_id`, A1.`number`, A2.`subject`, A6.`address`, A1.`source`, A3.`priority_color`, A3.`priority_desc`, A1.`status_id`, A7.`name`, A7.`state`, A1.`dept_id`, A8.`name`, A5.`name`, A1.`lastupdate`, A1.`isanswered`, B0.`firstname`, B0.`lastname`, B1.`name` ORDER BY A3.`priority_urgency` ASC, A1.`lastupdate` DESC] Unknown column 'A2.subject' in 'field list'

---- Recular ----
#0 (raíz)/include/mysqli.php(204): osTicket->logDBError('DB Error #1054', '[SELECT A4.`sta...')
#1 (raíz)/include/class.orm.php(3133): db_query('SELECT A4.`staf...', true, true)
#2 (raíz)/include/class.orm.php(3180): MySqlExecutor->execute()
#3 (raíz)/include/class.orm.php(1865): MySqlExecutor->getArray()
#4 (raíz)/include/class.orm.php(1815): HashArrayIterator->{closure}()
#5 (raíz)/include/class.orm.php(1794): CallbackSimpleIterator->next()
#6 (raíz)/include/class.orm.php(1803): CallbackSimpleIterator->rewind()
#7 (raíz)/include/class.orm.php(1463): CallbackSimpleIterator->valid()
#8 (raíz)/include/class.orm.php(1480): CachedResultSet->fillTo(2147483647)
#9 (raíz)/include/class.orm.php(1489): CachedResultSet->asArray()
#10 (raíz)/include/staff/tickets.inc.php(506): CachedResultSet->getIterator()
#11 (raíz)/scp/tickets.php(492): require_once('/var/www/html/o...')
#12 (raíz)/scp/index.php(17): require('/var/www/html/o...')
#13 {main}


This is the message on /var/log/apache2/error.log

PHP Fatal error:  Uncaught exception 'InconsistentModelException' with message 'Unable to prepare query:  SELECT A4.`staff_id` AS `lock__staff_id`, A1.`staff_id` AS `staff_id`, A1.`isoverdue` AS `isoverdue`, A1.`team_id` AS `team_id`, A1.`ticket_id` AS `ticket_id`, A1.`number` AS `number`, A2.`subject` AS `cdata__subject`, A6.`address` AS `user__default_email__address`, A1.`source` AS `source`, A3.`priority_color` AS `cdata__:priority__priority_color`, A3.`priority_desc` AS `cdata__:priority__priority_desc`, A1.`status_id` AS `status_id`, A7.`name` AS `status__name`, A7.`state` AS `status__state`, A1.`dept_id` AS `dept_id`, A8.`name` AS `dept__name`, A5.`name` AS `user__name`, A1.`lastupdate` AS `lastupdate`, A1.`isanswered` AS `isanswered`, B0.`firstname` AS `staff__firstname`, B0.`lastname` AS `staff__lastname`, B1.`name` AS `team__name`, (SELECT COUNT(R0.`id`) AS `count` FROM `ost_thread` Q7 JOIN `ost_ticket` Q8 ON (Q7.`object_type` = 'T' AND Q7.`object_id` = Q8.`ticket_id`) LEFT JOIN `ost_thread_collaborator` R0 ON (Q7.`id in /var/www/html/osticket/include/class.orm.php on line 3134, referer: http://server/scp/login.php


Closed tickets is not showing up in Closed tab in agent pannel.

$
0
0
When an agent close a ticket then he/she unable to see closed ticket on closed tab and closed tab remain Closed(0). Please advise...

Default Status in polish translation error

$
0
0
Hi everyone,

after instalation osTicket 1.10 with polish translation i field "Default Status" is empty in Admin -> Settings -> Tickets.
Also i can't see "Items" in Admin -> Manage -> Lists and i can't see and edit my "Custom Lists".
Configuration of "Tickets" is imposible.
When adding new "Ticket" redirects to empty open page.

This is PHP error log




PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'List indices should be integers' in /include/class.util.php:149
Stack trace:
#0 /include/class.forms.php(81): ListObject->offsetExists('message')
#1 /include/class.ticket.php(3564): Form->getField('message')
#2 /scp/tickets.php(328): Ticket::open(Array, Array)
#3 {main}

Moreover there is DB Error #1054 (below e-mail with mysql statement).


[SELECT A4.`staff_id` AS `lock__staff_id`, A1.`staff_id` AS `staff_id`,
A1.`isoverdue` AS `isoverdue`, A1.`team_id` AS `team_id`, A1.`ticket_id`
AS `ticket_id`, A1.`number` AS `number`, A2.`subject` AS
`cdata__subject`, A6.`address` AS `user__default_email__address`
, A1.`source` AS `source`, A3.`priority_color` AS `cdata__:priority__priority_color`, A3.`priority_desc` AS `cdata__:priority__priority_desc`,
A1.`status_id` AS `status_id`, A7.`name` AS `status__name`, A7.`state`
AS `status__state`, A1.`dept_id` AS `dept_id`, A8.`name` AS
`dept__name`, A5.`name` AS `user__name`, A1.`lastupdate` AS
`lastupdate`, A1.`isanswered` AS `isanswered`, B0.`firstname` AS
`staff__firstname`, B0.`lastname` AS `staff__lastname`, B1.`name` AS
`team__name`, (SELECT COUNT(R0.`id`) AS `count` FROM `ost_thread` Q7
JOIN `ost_ticket` Q8 ON (Q7.`object_type` = 'T' AND Q7.`object_id` =
Q8.`ticket_id`) LEFT JOIN `ost_thread_collaborator` R0 ON (Q7.`id` =
R0.`thread_id`) WHERE Q8.`ticket_id` = A1.`ticket_id`) AS collab_count,
(SELECT COUNT(R1.`id`) AS `count` FROM `ost_thread` Q7 JOIN `ost_ticket`
Q8 ON (Q7.`object_type` = 'T' AND Q7.`object_id` = Q8.`ticket_id`) LEFT
JOIN `ost_thread_entry` R0 ON (Q7.`id` = R0.`thread_id`) LEFT JOIN
`ost_attachment` R1 ON (R1.`type` = 'H' AND R0.`id` = R1.`object_id`)
WHERE Q8.`ticket_id` = A1.`ticket_id` AND R1.`inline` = 0) AS
attachment_count, (SELECT COUNT(R0.`id`) AS `count` FROM `ost_thread` Q7
JOIN `ost_ticket` Q8 ON (Q7.`object_type` = 'T' AND Q7.`object_id` =
Q8.`ticket_id`) LEFT JOIN `ost_thread_entry` R0 ON (Q7.`id` =
R0.`thread_id`) WHERE Q8.`ticket_id` = A1.`ticket_id` AND NOT R0.`flags`
& 4 != 0) AS thread_count FROM `ost_ticket` A1 LEFT JOIN
`ost_ticket__cdata` A2 ON (A1.`ticket_id` = A2.`ticket_id`) LEFT JOIN
`ost_ticket_priority` A3 ON (A2.`priority` = A3.`priority_id`) LEFT JOIN
`ost_lock` A4 ON (A1.`lock_id` = A4.`lock_id` AND A4.`expire` >
NOW()) JOIN `ost_user` A5 ON (A1.`user_id` = A5.`id`) LEFT JOIN
`ost_user_email` A6 ON (A5.`default_email_id` = A6.`id`) JOIN
`ost_ticket_status` A7 ON (A1.`status_id` = A7.`id`) JOIN
`ost_department` A8 ON (A1.`dept_id` = A8.`id`) LEFT JOIN `ost_staff` B0
ON (A1.`staff_id` = B0.`staff_id`) LEFT JOIN `ost_team` B1 ON
(A1.`team_id` = B1.`team_id`) WHERE A1.`ticket_id` IN (SELECT
A1.`ticket_id` FROM `ost_ticket` A1 JOIN `ost_ticket_status` A2 ON
(A1.`status_id` = A2.`id`) WHERE A1.`isanswered` = 0 AND A2.`state` =
'open' AND ((A2.`state` = 'open' AND A1.`staff_id` = 1) OR A1.`dept_id`
IN ('1'))) GROUP BY A4.`staff_id`, A1.`staff_id`, A1.`isoverdue`,
A1.`team_id`, A1.`ticket_id`, A1.`number`, A2.`subject`, A6.`address`,
A1.`source`, A3.`priority_color`, A3.`priority_desc`, A1.`status_id`,
A7.`name`, A7.`state`, A1.`dept_id`, A8.`name`, A5.`name`,
A1.`lastupdate`, A1.`isanswered`, B0.`firstname`, B0.`lastname`,
B1.`name` ORDER BY A3.`priority_urgency` ASC, A1.`lastupdate` DESC]



Unknown column 'A2.subject' in 'field list'<br />

<br />

---- Wsteczne śledzenie ----<br />

#0 (główny katalog)/include/mysqli.php(204): osTicket->logDBError('DB Error #1054', '[SELECT A4.`sta...')<br />

#1 (główny katalog)/include/class.orm.php(3133): db_query('SELECT A4.`staf...', true, true)<br />

#2 (główny katalog)/include/class.orm.php(3180): MySqlExecutor->execute()<br />

#3 (główny katalog)/include/class.orm.php(1865): MySqlExecutor->getArray()<br />

#4 (główny katalog)/include/class.orm.php(1815): HashArrayIterator->{closure}()<br />

#5 (główny katalog)/include/class.orm.php(1794): CallbackSimpleIterator->next()<br />

#6 (główny katalog)/include/class.orm.php(1803): CallbackSimpleIterator->rewind()<br />

#7 (główny katalog)/include/class.orm.php(1463): CallbackSimpleIterator->valid()<br />

#8 (główny katalog)/include/class.orm.php(1480): CachedResultSet->fillTo(9223372036854775807)<br />

#9 (główny katalog)/include/class.orm.php(1489): CachedResultSet->asArray()<br />

#10 (główny katalog)/include/staff/tickets.inc.php(506): CachedResultSet->getIterator()<br />

#11 (główny katalog)/scp/tickets.php(492): require_once('/home/virtual/w...')<br />

#12 (główny katalog)/scp/index.php(17): require('/home/virtual/w...')<br />

#13 {main}


osTicket Version v1.10 (901e5ea) — Up to date
Web Server Software Apache
MySQL Version 5.7.17
PHP Version 5.6.30-0+deb8u1


please help

DMT "RISA": Responsive osTicket > Frontend Theme with SCP Interface is ready. Test it now!

$
0
0
image

"RISA" is the name for the base of a fully responsive frontend and backend for osTicket. At this point we have finished the work on the frontend. Now you can adjust the complete frontend design from the backend with just a few clicks. Just navigate to "Admin Panel" > "Settings" > "System" and you will see a new tab "Theme".

Do you like a header with your logo in your corporate color? Just click.
Do you like a clean theme with flat design? Just click.
Do you like a background image? Just click.
And many options more...

Having in mind, that the technic of osTicket is up to date, but the appearance not, we did a lot of additional work: reworked the css, integrated bootstrap, added additional redactor plugins, added additional page types, reworked the sanitizing and cleaning of html, removed the possibility for frontend user to edit the html code, reworked the design, integrated bootstrap support for pages and tickets, and a lot of more ...

Here you can see it live in action:
https://risa.dmt.gmbh

If you like to test the scp interface use the following credentials:
Username: JohnAdmin
Passwort: Z7DXa(@PuBMf

The demo page resets every 30 minutes!
We will keep you informed, when the first themes based on RISA are available in our club.

Trouble Migrating Web Hosts

$
0
0
Hi Guys,

New to the forum so hello.

I am trying to migrate my current OSticket install to a Cpanel host. When I move the folders and upload the MySQL to the new web host the website no longer works and just shows error 500. Any ideas?

You can find the new website here - steventon.co/yewstockticketing

DMT Responsive Bootstrap Theme Free "Extended Basic" for osTicket 1.10

$
0
0
Hi there, we are working on a free responsive theme for osTicket 1.10., the frontend is nearly finished and you will get the first release this weekend. Here's the first preview:

image

If you have any wishes, suggestions, feedback... please submit it in this topic. Many thanks!

Mail Fetch Failure Alert

$
0
0
I am receiving 'HelpDesk Alerts' every 15 minutes (which is flooding my inbox).  No settings have been altered within osTicket system (version 1.9.2) nor our email server.  Can anyone assist with this issue?

input text from drop down custom list and output to ticket body message

$
0
0
We currently have a custom drop down for our locations (different buildings).  Currently on the Android App the location drop down is not visible.  So I would like to out put the selection from the custom list/drop down to the top of the ticket.  This will allow us to see the location on our mobile devices.  Does anyone know how this can be done.  I would imagine the data would have to be pulled from the SQL database and output at the top of each original ticket entry.  Please Help!!

auto-assign a ticket without assigning it in the help topic

$
0
0
How do I auto-assign a ticket to a single user on the computer to attend a request without assigning it in the help topic ?.

For example, I have 5 people in support in 1 team, but I want the tickets to be assigned to one person, while that person attends a ticket, another person is automatically assigned the next and so on, until he reassigns the first one.

OS 1.0 Core - Set Agent Password

$
0
0
I am administrator  Have set up my coworker as an agent. I want to send a password to him. In the popup, it has 3 buttons: reset, cancel and update. Your reset button does not work.
 

Bugfix: class.format.php > error when using special characters, accents or umlauts in pages names

$
0
0
If you are using special characters, accents or umlauts in your pages names osticket will create an error 403.

affected file: include/class.format.php

Remove or escape line 683 to 696:
    // Thanks, http://stackoverflow.com/a/2955878/1025836
    /* static */
    function slugify($text) {
        // replace non letter or digits by -
        $text = preg_replace('~[^\p{L}\p{N}]+~u', '-', $text);

        // trim
        $text = trim($text, '-');

        // lowercase
        $text = strtolower($text);

        return (empty($text)) ? 'n-a' : $text;
    }

and replace it with:

    /* DMT Slugify to support special characters Start */
   
        function slugify($text)
    {
          // replace non letter or digits by -
          $text = preg_replace('~[^\\pL\d]+~u', '-', $text);
        // trim
          $text = trim($text, '-');
        // transliterate
          if (function_exists('iconv'))
              {
            $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text);
              }
        // lowercase
          $text = strtolower($text);
        // remove unwanted characters
       
          $text = preg_replace('~[^-\w]+~', '', $text);
        $text = preg_replace('#&([A-za-z])(?:acute|cedil|caron|circ|grave|orn|ring|slash|th|tilde|uml);#', '\1', $text);
        $text = preg_replace('#&([A-za-z]{2})(?:lig);#', '\1', $text);
        $text = preg_replace('#&[^;]+;#', '', $text);
          if (empty($text))
           {
            return 'n-a';
           }
          return $text;
    }
   
    /* DMT Slugify Ende */

Best regards,
Jürgen

Generate a file for tickets

$
0
0
Is it possible that I can generate an excel file of all the tickets? For example: All tickets for month of May and tickets (including the informations, of course) are saved in excel file?
Viewing all 7550 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>