Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4206
Latest: jagwire
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 42718
Total Topics: 7443
Most Online Today: 60
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 36
Total: 37

Author Topic: prettyurls - TroubleShooting.wiki  (Read 15592 times)

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #15 on: September 22, 2020, 03:35:09 pm »
Yeah it does you will need to download the mod unzip it.
Find smf2.0/install.zip
and remove this code from it. then rezip it back up.
Code: [Select]
// Create the pretty_urls_cache table
$smcFunc['db_drop_table']('{db_prefix}pretty_urls_cache');
$smcFunc['db_create_table']('{db_prefix}pretty_urls_cache', array(
array('name' => 'url_id', 'type' => 'varchar', 'size' => 255),
array('name' => 'replacement', 'type' => 'varchar', 'size' => 255),
), array(
array('type' => 'primary', 'columns' => array('url_id')),
), array(), 'overwrite');
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline GhostHunting

  • Member
  • *
  • Posts: 16
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #16 on: September 22, 2020, 03:47:45 pm »
You did it!!! It works!!!

Thank you so much!!!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #17 on: September 22, 2020, 03:49:44 pm »
Glad you have it working! Still a strange issue.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline GhostHunting

  • Member
  • *
  • Posts: 16
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #18 on: September 22, 2020, 03:54:08 pm »
I have several other SMF installs, how do I upgrade from the old version of Pretty urls to the new version? Is there tutorial somewhere?

Thanks again for your help!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #19 on: September 22, 2020, 04:07:11 pm »
Ideally you uninstall old version then install new when possible.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline GhostHunting

  • Member
  • *
  • Posts: 16
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #20 on: September 22, 2020, 04:10:45 pm »
That gives:

Code: [Select]
HTTP ERROR 500

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #21 on: September 22, 2020, 04:24:47 pm »
On uninstall That would be tricky. But most of the updates where just the changes from the sources file.
You can do the replacements just overwrite old files. I would do a backup first
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline s10dulkar

  • Member
  • *
  • Posts: 1
    • View Profile
moved host old db having pretty url data how to add mod in new installation
« Reply #22 on: December 08, 2020, 12:56:45 pm »
moved to new host installed fresh smf and reloaded old db now i am trying to enable pretty url as its already in db. but it gives me error when i try and install mod

Specified key was too long; max key length is 1000 bytes
File: /home/customer/www/samplesite.com/public_html/Packages/temp/SMF2-0/install.php
Line: 39

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.17, while your database is at version 2.0.10. The above error might possibly go away if you execute the latest version of upgrade.php.

what to do now? where can i find upgrade.php and will that solve this issue ?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #23 on: December 08, 2020, 12:58:49 pm »
Replied on smf forum upgrade.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #24 on: October 25, 2021, 10:07:01 am »
Hello,

I installed pretty urls in a new forum and looks like it is causing me problems.

I ran the maintenance and now it put me out of the admin panel, and I can't access any other pages, only the Home page and boards. Before I saw also an error saying that someone was trying to login as admin, and it was me, I needed to log out as member, and then login and I could access the admin. Then when the time passed, and I needed to login again as admin, it was saying the password was false.

And then like I said above, I can't access the admin panel.

How can I uninstall the Mod manually on my server?

Usually on download page on SMF, there is  a list of files a mod installs, and a list of code it changes in several SMF files. Where do you have it?

Another question related with what another member here posted.     

Quote
make certain and have "index.php?board=" 'allowed' in your robots.txt.

Do you know exactly the code I need to add on my robots.txt file to allow "index.php?board="?

Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #25 on: October 25, 2021, 10:47:57 am »
on my phone but upload package to https://www.smfhacks.com/smf-package-parser.html to reverse edits.  You can also disbale the mod doing the script above

robots.txt is for search engines only
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #26 on: October 25, 2021, 02:08:26 pm »
Thanks, I solved the problem. I want to use the Mod, but, first it doesn't rewrite one of the boards. I created 16 boards distributed by 2 categories, and one of the boards continues with the url /index.php?board=18.0 instead of the name.

I install the mod, and immediately all the urls are correct, only this one not.

I run the maintenance, and no change.

But the biggest problem is when I run maintenance it redirects me to the home page, and I don't have more access to the admin panel.

Please help me. I have this mod since about 10 years ibn a 1.1.8 smf forum, and never had any problems.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #27 on: October 25, 2021, 02:11:05 pm »
Install the mod again. But use the pretty urls link under manage boards to change the url.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

guest14411

  • Guest
Re: prettyurls - TroubleShooting.wiki
« Reply #28 on: October 25, 2021, 02:45:39 pm »
Already tried many times. Not possible. When I change there the url there, than it shows the url this way: https://www.mydomain.com/httpswww.mydomain.comgeneral-discussion

I tried only add there the last part, "general-discussion", so it would be correct, but it is not possible.

And about what happens when I run maintenance. What could be the reason?


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16204
    • View Profile
Re: prettyurls - TroubleShooting.wiki
« Reply #29 on: October 25, 2021, 03:02:10 pm »
The pretty urls root could be wrong.  check in the smf_settings table. for prettyurls root or reset with making a script from
Links point to old domain after moving forum or fix HTTPS
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
7594 Views
Last post October 07, 2006, 11:43:40 pm
by Nite
1 Replies
3516 Views
Last post September 14, 2014, 09:46:47 am
by SMFHacks
0 Replies
2628 Views
Last post May 31, 2017, 10:49:05 pm
by SMFHacks
0 Replies
2466 Views
Last post July 13, 2018, 04:22:02 pm
by SMFHacks
0 Replies
2720 Views
Last post July 13, 2018, 04:23:01 pm
by SMFHacks

+- Recent Topics

Feature to upload a photo straight when composing a message by SMFHacks
February 04, 2023, 08:13:46 am

Pretty URL's Pro rewriting URLs by [chrisB]
February 01, 2023, 05:18:47 pm

Question before purchase by SMFHacks
February 01, 2023, 03:53:33 pm

Unlimited ending time by Saftek
January 29, 2023, 10:06:26 pm

Converting from Aeva Media by ivanr
January 28, 2023, 10:09:42 am

[Mod] Post Scheduler by bayonetbrant
January 23, 2023, 02:24:09 pm

"Notify all store admins of item purchase" Not Working in SMF 2.1.2 or 2.1.3 by Michael Vail
January 22, 2023, 10:50:23 pm

[Request] Future consideration by [chrisB]
January 18, 2023, 08:42:53 am

Pretty Urls extras by SMFHacks
January 16, 2023, 04:00:57 pm

I don't think its installed correctly by SMFHacks
January 10, 2023, 05:56:21 pm

Powered by EzPortal