Support

Akeeba Ticket System

#27910 empty page when publishing infos modules

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Ticket System version
n/a

Latest post by arnaudlu on Friday, 09 June 2017 03:33 CDT

arnaudlu
Hello,

When I publish " Credits and time information" and/or "Tickets info" modules on a page containing (or not) other elements, the page is empty (no source code), nothing is displayed.
The problem occurred after the ATS update from 2.2.6 to 2.3.0 (by the way, auto update didn't work).
I reproduced the problem on another installation, with 3 different templates.
I'm using CPanel, when I switch PHP version to 7.0, I have an error message: "0 - using $this not in object context".

Thanks for your help !
Best regards,
Arnaud

tampe125
Akeeba Staff
Hello,

can you please set the Error reporting to Development inside Joomla Global Configuration?
What's the error message printed on screen?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

arnaudlu
Hello,

Fatal error: Using $this when not in object context in /home/redqueen/themys.net/modules/mod_atstickets/mod_atstickets.php on line 45

Regards
Arnaud

tampe125
Akeeba Staff
Looking at the code, there isn't such line in the latest version of Akeeba Ticket System; I suspect Joomla forgot to copy all the files.
Can you please install ATS twice in a row, without uninstalling it? That should fix your problem.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

arnaudlu
Hello,

- I tried your solution, but it didn't work, I still have the same problem and error message.
- In addition, I looked at the module code and found line "$this->container->platform->getUser();" in the pkg_ats-2.3.0-pro.zip file I used for the installation too.
When I replace
$user=$this->container->platform->getUser();
if($user->guest)
{
echo ' ';
return;
}

by one of my users:
$user = 'myuserlogin';

The module is correctly displayed on my page.

Best regards
Arnaud

tampe125
Akeeba Staff
mhm... there was indeed an error in such module.
I just fixed it, thank you very much for your report!

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

arnaudlu
Hello,
you're welcome.
unfortunately, when I publish "Akeeba Ticket System - Credits and time information", I have exactly the same problem: an empty page, an no error message.
any idea ? :-)
best regards
arnaud

tampe125
Akeeba Staff
You can find the fix inside the latest dev release

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

arnaudlu
Thank you.
It fixed the problem with "ticket infos" module, but there is still a bug with "Credits and time information" module. When I publish it, the page is empty.
Arnaud

tampe125
Akeeba Staff
I missed a couple of spots. Can you please download it and try again?

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

arnaudlu
It seems to be perfect, thank you for your support ! :-)
Best regards,
Arnaud

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!