e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
321 stars 213 forks source link

forum_viewforum.php only displays {---CAPTION---} and {---BREADCRUMS---} #4852

Open STR82UII opened 2 years ago

STR82UII commented 2 years ago

Bug Description

forum_viewforum.php only displays {---CAPTION---} and {---BREADCRUMS---} on this page. My forum is here https://www.emailtoinmates.com/forum and if you click one of the topic/forum links it will show you what it's doing. (or not doing as it were).

The veiwtopic.php page displays the individual topics properly but those pages can't be reached because of the error.(https://www.emailtoinmates.com/extras/forum/forum_viewtopic.php?id=19)

Upgraded from a v .7 site a month ago and it's done it since, original was working properly. Server has PHP 7.4

STR82UII commented 2 years ago

Forgot to mention, the meta title tags of the blank pages is correct, the page's title shows in the tab etc

Jimmi08 commented 2 years ago

@STR82UII check your error logs. This look ({---CAPTION---} and {---BREADCRUMS---}) is when there is fatal error on the page.

And you should switch to SEF-URLs for forum, if you can.

STR82UII commented 2 years ago

From Error_log after clicking all sections/forums:

text/x-generic error_log ( ASCII text ) [18-Aug-2022 19:05:47 UTC] PHP Fatal error: Uncaught Error: Call to a member function setVars() on null in /home2/emailnam/public_html/extras/forum/forum_viewforum.php:479 Stack trace:

0 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(421): forum_viewforum_front->parse_thread(Array)

1 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(56): forum_viewforum_front->init()

2 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(565): forum_viewforum_front->__construct()

3 {main}

thrown in /home2/emailnam/public_html/extras/forum/forum_viewforum.php on line 479 [18-Aug-2022 19:05:50 UTC] PHP Fatal error: Uncaught Error: Call to a member function setVars() on null in /home2/emailnam/public_html/extras/forum/forum_viewforum.php:479 Stack trace:

0 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(421): forum_viewforum_front->parse_thread(Array)

1 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(56): forum_viewforum_front->init()

2 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(565): forum_viewforum_front->__construct()

3 {main}

thrown in /home2/emailnam/public_html/extras/forum/forum_viewforum.php on line 479 [18-Aug-2022 19:05:52 UTC] PHP Fatal error: Uncaught Error: Call to a member function setVars() on null in /home2/emailnam/public_html/extras/forum/forum_viewforum.php:479 Stack trace:

0 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(421): forum_viewforum_front->parse_thread(Array)

1 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(56): forum_viewforum_front->init()

2 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(565): forum_viewforum_front->__construct()

3 {main}

thrown in /home2/emailnam/public_html/extras/forum/forum_viewforum.php on line 479 [18-Aug-2022 19:05:55 UTC] PHP Fatal error: Uncaught Error: Call to a member function setVars() on null in /home2/emailnam/public_html/extras/forum/forum_viewforum.php:479 Stack trace:

0 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(421): forum_viewforum_front->parse_thread(Array)

1 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(56): forum_viewforum_front->init()

2 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(565): forum_viewforum_front->__construct()

3 {main}

thrown in /home2/emailnam/public_html/extras/forum/forum_viewforum.php on line 479 [18-Aug-2022 19:05:58 UTC] PHP Fatal error: Uncaught Error: Call to a member function setVars() on null in /home2/emailnam/public_html/extras/forum/forum_viewforum.php:479 Stack trace:

0 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(421): forum_viewforum_front->parse_thread(Array)

1 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(56): forum_viewforum_front->init()

2 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(565): forum_viewforum_front->__construct()

3 {main}

thrown in /home2/emailnam/public_html/extras/forum/forum_viewforum.php on line 479 [18-Aug-2022 19:06:47 UTC] PHP Fatal error: Uncaught Error: Call to a member function setVars() on null in /home2/emailnam/public_html/extras/forum/forum_viewforum.php:479 Stack trace:

0 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(421): forum_viewforum_front->parse_thread(Array)

1 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(56): forum_viewforum_front->init()

2 /home2/emailnam/public_html/extras/forum/forum_viewforum.php(565): forum_viewforum_front->__construct()

3 {main}

thrown in /home2/emailnam/public_html/extras/forum/forum_viewforum.php on line 479

STR82UII commented 2 years ago

I posted the error log on github, emptying it first then visited the error by clicking each of the forum links to create the error

I don't know how to switch to SEF urls in the forum, it doesn't show me anything like that in "URL Configuration" but you can see the main page URL is simply https://www.emailtoinmates.com/forum

The errors say line 479 but I don't understand the code, I'd be happy to let you or someone from e107 to look at it from the inside

On Wed, Aug 17, 2022 at 9:32 AM Jimako @.***> wrote:

@STR82UII https://github.com/STR82UII check your error logs. This look ({---CAPTION---} and {---BREADCRUMS---}) is when there is fatal error on the page.

And you should switch to SEF-URLs for forum, if you can.

— Reply to this email directly, view it on GitHub https://github.com/e107inc/e107/issues/4852#issuecomment-1218169491, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2QGIYVQLCAB5EVX45BSDU3VZUAYTANCNFSM56XW3QVA . You are receiving this because you were mentioned.Message ID: @.***>

Jimmi08 commented 2 years ago

@STR82UII what version of e107 are you using? Maybe it was fixed because I tried it with latest version of forum plugin and no issue with legacy urls. It would be nice to have your forum data, can you catch me on gitter? I would like to help you (if I am able) because I run 2 big forums and I want to have something like this fixed. Lately there was some fixes of subforum. But with your data I am able to test it with latest e107 version.

Ad SEF-URL, you should see something like this: image

Do you know how to export e107 Data? Database/Tools/Export - and select forum tables and forum prefs.

STR82UII commented 2 years ago

That URL configuration is on/activated as shown in your post. I turned it off to test and get the same error.

The site was recently updated/upgraded to V2.3.2

In "tools/Database", the only option is to backup site data, backup. If you can give me your email address, I can give you admin privileges

STR82UII commented 2 years ago

Here is what I got

Jimmi08 commented 2 years ago

You should be part of https://gitter.im/e107inc/e107 it is the quickest way how to get help and a way how to do private chat

deleted email

Jimmi08 commented 2 years ago

In "tools/Database", the only option is to backup site data, backup. If you can give me your email address, I can give you admin privileges

image

STR82UII commented 2 years ago

OK, this is from the "Export Site Data"

STR82UII commented 2 years ago

e107Export_2022-08-18a.zip

Sorry for the blank file, this is correct

STR82UII commented 2 years ago

Glitter wants me to use "Matrix" but I'm using windows 10 in S mode so it won't install.

I just created a main admin account for you at https://www.emailtoinmates.com/

STR82UII commented 2 years ago

Did you get the email with your password?

STR82UII commented 2 years ago

Mine is Windows 10 In S Mode, it only allows installing Microsoft Store apps

Jimmi08 commented 2 years ago

This doesn't fix your problem but why you was getting legacy urls: Your forums didn't have SEF-URL versions. You didn't know this before displaying this field.

image

Jimmi08 commented 2 years ago

With latest 2.3.3 git it works correctly. You could update forum plugin (only this one) from github version 2.3.3 image

STR82UII commented 2 years ago

Understood, I'll try to get that....

Moc commented 2 years ago

@STR82UII Does the issue still occur using the latest files from Github?