Advertisement:

Author Topic: Pretty URLs  (Read 2294317 times)

Offline Loli

  • Newbie
  • *
  • Posts: 1
Re: Pretty URLs
« Reply #7820 on: May 13, 2019, 06:57:08 PM »
I just installed this and couldn't be anymore impressed, highly recommend it.

Offline ForumMustang.com

  • Full Member
  • ***
  • Posts: 474
  • Gender: Male
  • SMF French Translator
    • forummustang on Facebook
    • Ford Mustangs
Re: Pretty URLs
« Reply #7821 on: May 14, 2019, 09:10:13 AM »
How do you update the URL for a topic if you change the subject? I've tried running the maintenance tasks but that hasn't changed anything.
The only way is to modify the entries in the Pretty URLs' database. I had to do it a few times because of complaints from non members or businesses and it is a pain. It would be great to have a feature that would do it from the admin panel.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,621
    • StoryBB/StoryBB on GitHub
Re: Pretty URLs
« Reply #7822 on: May 14, 2019, 09:16:36 AM »
Though it is kind of deliberate to avoid breaking links to things...
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline horisize

  • Semi-Newbie
  • *
  • Posts: 22
Re: Pretty URLs
« Reply #7823 on: May 29, 2019, 04:19:52 PM »
I installed pretty url , but didnt get it to work. So, i uninstalled it, but keep getting these errors.

Error
Type of error: Undefined_vars
Error message: 8: Undefined index: pretty_enable_filters
File: /home/csscpsg2/public_html/smf/Sources/MessageIndex.php
Line: 30
URL of page causing the error: https://csscpsg.org/smf/index.php?board=25.0 [nofollow] [nofollow]
Backtrace information
#0: smf_error_handler()
Called from /home/csscpsg2/public_html/smf/Sources/MessageIndex.php on line 30
#1: MessageIndex()
Called from /home/csscpsg2/public_html/smf/index.php on line 163

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,557
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7824 on: May 29, 2019, 04:24:20 PM »
Did the mod make all the changes to the your smf forum?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline horisize

  • Semi-Newbie
  • *
  • Posts: 22
Re: Pretty URLs
« Reply #7825 on: May 30, 2019, 03:02:40 AM »
Did the mod make all the changes to the your smf forum?

I have no idea. It is spamming my error section, so id like to fix the error.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,557
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7826 on: May 30, 2019, 09:06:40 AM »
If you uninstalled it that means it shouldn't be in the files any more.
That means a file failed to uninstall check Sources/MessageIndex.php and remove any related code.
You can upload it via https://www.smfhacks.com/smf-package-parser.html and get the install/uninstall steps

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline naijacrux

  • Semi-Newbie
  • *
  • Posts: 20
Re: Pretty URLs
« Reply #7827 on: June 22, 2019, 08:12:26 AM »
attached is the harm this mod cause to my website,i noticed my website becomes slow and my server cpu fill rate increased.after a week of installing this mod. i checked everything until i checked my php admin. this mod create a cache tabel and kept storing cache without clearing them making the website slow and also also hosting server. i have removed the mod now until the op fix this issue.

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,557
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7828 on: June 22, 2019, 09:15:25 AM »
Use non caching option that should help
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline naijacrux

  • Semi-Newbie
  • *
  • Posts: 20
Re: Pretty URLs
« Reply #7829 on: June 25, 2019, 03:38:39 AM »
Use non caching option that should help

none cache option is worse,i tried and it still stores cache secretly and hidden and makes the website to lag and also the server..i have removed the mod. my website runs smoothly since i removed the mod.

the op need to update this mod and remove the cache issue completely.

Offline Totosfo

  • Semi-Newbie
  • *
  • Posts: 16
  • Overloaded Webmaster
    • usa-reise.de Amerika von Fans für Fans
Re: Pretty URLs
« Reply #7830 on: June 29, 2019, 03:20:59 PM »
Hello all,

I'm getting the same error:

Code: [Select]
http://forum.usa-reise.de/index.php?topic=30407.60

8: Undefined index: pretty_enable_filters

Datei: /pages/d7/54/d0014341/home/htdocs/usa-reise.de/smf/smf-v2a/Sources/Display.php
Zeile: 74

It's the same for MessageIndex, etc. Apart from that, PrettyURLs is working so far for me.

Line 78 in Display.php is the line where the curly brackets open:

Code: [Select]
$filterData = unserialize($modSettings['pretty_filters']);
if ($filterData['topics']['enabled'])
{
$url = 'topic=' . $topic . '.' . (isset($_REQUEST['start']) ? $_REQUEST['start'] : '0') . (isset($_REQUEST['prev_next']) ? ';prev_next=' . $_REQUEST['prev_next'] : '') . (isset($_REQUEST['topicseen']) ? ';topicseen' : '') . (isset($_REQUEST['all']) ? ';all' : '') . (isset($_REQUEST['viewResults']) ? ';viewResults' : '');
header('HTTP/1.1 301 Moved Permanently');
redirectexit($url, false);
}

Any help is appreciated, my error log is growing with every visit… - thank you in advance!

Regards, Thomas
Cheers,

Thomas

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,557
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7831 on: June 29, 2019, 08:43:12 PM »
Run pretty urls maintenance task in the admin area for pretty urls
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Totosfo

  • Semi-Newbie
  • *
  • Posts: 16
  • Overloaded Webmaster
    • usa-reise.de Amerika von Fans für Fans
Re: Pretty URLs
« Reply #7832 on: June 30, 2019, 09:48:17 AM »
Thank you very much, this indeed did the trick.

I am curious now - before I dig into the script and have a look at the db - what did it change?

Going to truncate the huuuuuuuge log now.

Regards,

Thomas

Cheers,

Thomas

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,557
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7833 on: June 30, 2019, 09:56:37 AM »
It looks like the array wasnt populated correctly.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Totosfo

  • Semi-Newbie
  • *
  • Posts: 16
  • Overloaded Webmaster
    • usa-reise.de Amerika von Fans für Fans
Re: Pretty URLs
« Reply #7834 on: June 30, 2019, 10:02:12 AM »
Thanks again.

Code: [Select]
170313 records affected. (The query took 3.0448 seconds.)
Let's hope that the log stays neat and small now.

Cheers,

Thomas
Cheers,

Thomas

Offline bod22

  • Semi-Newbie
  • *
  • Posts: 31
Re: Pretty URLs
« Reply #7835 on: July 30, 2019, 05:13:59 AM »
Hi,

I have a problem with Pretty URLs on my forum. I don't know why but when I have prime (') in the title of the topic I can't open it. ;/ It always redirects me to the board where the topic is placed. What can be wrong? I didn't notice this issue in the past/ I guess it happend when I updated the mod.

Thanks for any help.

Offline bod22

  • Semi-Newbie
  • *
  • Posts: 31
Re: Pretty URLs
« Reply #7836 on: August 02, 2019, 05:06:07 AM »
Anyone? Any help?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,557
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7837 on: August 02, 2019, 07:26:17 AM »
More than likely an edit wasn't made it to sources/querystring.php

Recheck that all the edits were made
You can upload the package to https://www.smfhacks.com/smf-package-parser.html to find the edits.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline bod22

  • Semi-Newbie
  • *
  • Posts: 31
Re: Pretty URLs
« Reply #7838 on: August 02, 2019, 07:52:17 AM »
Thank you for the reply. I checked it and all changes to sources/querystring.php have been done correctly.

I use SMF 2.0.15 and I've changed recently to PHP 7.2 and installed SMF 2.0.X - PHP 7.2+ Compatibility. Perhaps this has sth to do with this error?

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,557
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Pretty URLs
« Reply #7839 on: August 02, 2019, 08:16:56 AM »
I haven't tested on 7.2 yet. I have gone up to php 7.1 but I don't think that would be the cause.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro