Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4253
Latest: Ineedsmfhelp
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43242
Total Topics: 7516
Most Online Today: 92
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 105
Total: 105

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

0 Members and 1 Guest are viewing this topic.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16428
    • 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: 16428
    • 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: 16428
    • 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: 16428
    • 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: 16428
    • 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: 16428
    • 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: 16428
    • 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: 16428
    • 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
7962 Views
Last post October 07, 2006, 11:43:40 pm
by Nite
1 Replies
4293 Views
Last post September 14, 2014, 09:46:47 am
by SMFHacks
0 Replies
3382 Views
Last post May 31, 2017, 10:49:05 pm
by SMFHacks
0 Replies
3722 Views
Last post July 13, 2018, 04:22:02 pm
by SMFHacks
0 Replies
3903 Views
Last post July 13, 2018, 04:23:01 pm
by SMFHacks

+- Recent Topics

is it possible to add support for odysee.com by SMFHacks
March 13, 2024, 10:53:28 pm

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

User Gallery Feature: move / bulk move images by SMFHacks
January 30, 2024, 05:48:25 pm

In the future it may be for smf 2.1.x? by smithloo
January 30, 2024, 12:55:34 am

Powered by EzPortal