02-20-2018, 03:24 PM
Hmm. We probably need to come up with an elegant solution for this.
The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
Page title not displayed correctly
|
02-20-2018, 03:24 PM
Hmm. We probably need to come up with an elegant solution for this.
02-20-2018, 05:03 PM
Thanks Shoropio, your fix did the trick. Title works fine now! But a solution out of the box, one that just works, would be preferable yes.
02-20-2018, 06:45 PM
So I am not sure what solution there is for this. The only way page titles work is if there is an entry in the pages table. If the pages are not protected/registered from z_us_root by the pages function-it can't find a title. I think the only solution is to add / to the z_us_root, but I don't know what this could break.
02-20-2018, 08:34 PM
We basically need to do a check to make sure a page that's in the db doesn't get re-inserted, right?
02-26-2018, 03:35 PM
Exact @mudmin, Adding "/" z_us_root.php works ... the problem is that it prints two versions of the same file in the database, for example: /my-page.php and my-page.php. for the title to print correctly we should just edit /my-page.php in admin_pages.php.
02-26-2018, 03:40 PM
Do you know if there is a ticket in for this at userspice.com/bugs
? I'll work on a more elegant solution for 4.3.15
02-26-2018, 03:59 PM
Even with the / I am not getting page titles.
02-26-2018, 07:26 PM
02-26-2018, 07:34 PM
Thanks. This is helpful.
02-26-2018, 08:18 PM
Ok. Try this. Try getting rid of the / in the z_us_root and just leaving the '','users/','usersc/'
and any other folders you added. Then replace the users/includes/header.php with this https://pastebin.com/Bw3ApXuj |