Posted: September 12, 2018 at 3:29 pm
|
Hi [12-Sep-2018 21:13:08 UTC] PHP Warning: Use of undefined constant ticket – assumed ‘ticket’ (this will throw an Error in a future version of PHP) in /home/manaret1/public_html/wp-content/uploads/espresso/templates/ticket_selector_chart.template.php on line 445 Any help would be much appreciated. |
Hi, The PHP warning is actually originating from the custom code located in your site’s uploads folder. May I ask what’s the contents of that file on and around line 445? |
|
|
Hi Josh The specific line at 445 is: Ticket selector table display do actions. |
That does not look like valid PHP code, maybe something got rearranged there by mistake while editing? In any case, it looks like that should be changed to: |
|
|
Have changed the line of code as suggested above but still get error on page and ticketing chart dosen’t display. |
|
Regarding the error msg on the page:[] operator not supported for strings https://gist.github.com/lorenzocaum/92dd4db9e1fc159b9a928cbcb58b0fe4 |
|
Hi Josh |
The code snippet didn’t appear to have anything related to the error, message, but in any case it will best if your developer can update the custom code so it’s ready for PHP 7.2. |
|
The support post ‘Use of undefined constant ticket’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.