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
318 stars 212 forks source link

Not define the PAGE_NAME on profile page #5264

Open fizi opened 1 month ago

fizi commented 1 month ago

What e107 version are you using?

Latest Github version (just updated)

Bug description

Not define the PAGE_NAME on profile page. Appear "commets" on pagename.

How to reproduce

Go to profile page.

Expected behavior

Need define the profile page title.

What browser(s) are you seeing the problem on?

Firefox

PHP Version

PHP 8.1.10 (localhost)

tgtje commented 1 month ago

@fizi hope it is this? i can not replicate

profile page title in English lan_usersettings: if(!defined('PAGE_NAME')) { define("PAGE_NAME", "User Settings"); }

When using Hungarian lan_usersettings : this is in language pack :

define("PAGE_NAME", "Felhasználói beállítások"); so it misses the IF... that lang file is 6 years old, the change was made 4 years ago...

fizi commented 1 month ago

page-name-error This in the lan_usersettings.php but the lan_user.php haven't it. (user.php)

tgtje commented 1 month ago

Would like to help, but i do not know what you expect to see ? eg what does PAGE_NAME is UNDEFINED hold.

The image looks like the comment.php displaying a styled profile. the above part is displayed WHEN comments are enabled ANd user/options/prefs Allow comments in user profile is ENABLED. when DISabled profile should display > member profile..

wx

Jimmi08 commented 1 month ago

I am afraid this is related to using 2x tablerender() - one for the user page and, the second for comments. Check your theme and templates for using PAGE_NAME. The same for breadcrumbs.

tgtje commented 1 month ago

Adding : this behaviour happens on profile page (user.php)

fizi commented 1 month ago

Yes, this happens on profile page. If the comment disabled - the page name appears normally, if the comment enabled - appears "0 comment"