Closed OnionDev1885 closed 1 year ago
ok let me check
@OnionDev1885 are you using custom email templates
@OnionDev1885 are you using custom email templates
Yes. But I have plain templates now. M planning for css ones.
Nevermind, scratch that. I had the chance to visit a newer Xera installation and it appears the issue exists anyway. No clue as to what's causing it, for some reason the header and footer that are supposed to be included in these pages aren't included in the SSL one.
well it looks like it started after the crypto loot update
maybe
I have noticed, that its fine till there are no SSL requests done (pending, processing, completed, any) As soon as someone issues an SSL (no matter its processed or not), the admin SSL page gives error (CSS doesn't loads)
hm m
After some extensive debugging, I was able to find out what's causing the issue.
In template\default\page\admin\ssl.php
, lines 77 and 81 contain the expression $this->ssl->list_count()
, which breaks the code and prevents the page from loading correctly. Removing the lines that contain the expression or replacing it with a numeric value (for example 1
) allows the page to load correctly again.
I'm assuming the issue exists in the function list_count
in app\models\Gogetssl.php
, but I have no clue as to how it would be fixed. Someone experienced in PHP could take a look and see if they can identify the issue.
My guess is that the function is returning "FALSE" or NULL, Probably because there is no fallback. I will take a look tomorrow if I remember, no use looking at it on my phone.
I was able to find out what's causing it and will make a PR along with some other fixes soon.
My guess is that the function is returning "FALSE" or NULL, Probably because there is no fallback. I will take a look tomorrow if I remember, no use looking at it on my phone.
I thought to try and test this out after you mentioned it, but as my tests produced nothing, I kept checking. Then I realized that the page was showing "Showing 1 to 1 of Array entries"; realizing that the code was incorrectly returning an Array instead of counting the elements in it as intended. I'm unsure if the way I fixed it is correct, so if you could review it that would be great.
After some extensive debugging, I was able to find out what's causing the issue. In
template\default\page\admin\ssl.php
, lines 77 and 81 contain the expression$this->ssl->list_count()
, which breaks the code and prevents the page from loading correctly. Removing the lines that contain the expression or replacing it with a numeric value (for example1
) allows the page to load correctly again.I'm assuming the issue exists in the function
list_count
inapp\models\Gogetssl.php
, but I have no clue as to how it would be fixed. Someone experienced in PHP could take a look and see if they can identify the issue.
so bro, can u say me what changes shall i make here?
I don't know php, so can u provide me the preview of the fixed code?
[Yes I changed the whole file of admin/ssl.php from the current one. And still the issue isn't solved. I also tried clearing cookies]
so bro, can u say me what changes shall i make here?
I don't know php, so can u provide me the preview of the fixed code? [Yes I changed the whole file of admin/ssl.php from the current one. And still the issue isn't solved. I also tried clearing cookies]
I assume you also copied the new app\models\Gogetssl.php
over, and cleared the cache, if you did not do those please do them. The issue was in Gogetssl.php
, but it is resolved in my local installation.
If you've also done those and it still does not work please let me know.
Thank You so much for your contribution! Issue was fixed :)
Thank You so much for your contribution! Issue was fixed :)
You're very welcome! I'm glad to hear it :)
Found a broken Page Url: /a/ssl Error: CSS doesn't loads. Image:![190137202-bba88bc7-1dc3-4002-942e-a51abc6097ec](https://user-images.githubusercontent.com/81822450/190423107-f84972fb-9140-443a-aa61-fbe81e2ead28.png)