SimpleSEF 2.0 (SMF 1.1.x and SMF 2.0)

Started by SlammedDime, December 05, 2009, 10:08:40 PM

Previous topic - Next topic

rölyef

Quote from: Fovist on May 02, 2010, 02:58:59 AM
Thanks   for the nice mod.

Simple Sef converter for Pretty Urls?
Please.

Help, please.

Antes

#681
i want SimpleSEF use /smf/.htaccess , how can i do this ?

Adish - (F.L.A.M.E.R)

#682
Quote from: bluedevil on February 06, 2010, 02:49:12 PM
This mod installed perfect but.....

I couldnt check mark to activate the mod,   i manually added the rewrite code in .htaccess, then i was able to activate it and it worked.

...but,  it added a bunch of question marks at the very top of my forum pages like this all the way across..

????????????????????????????????

What went wrong?

Happens to me. 1.1.11

Something to do with the header modification:
2: Cannot modify header information - headers already sent by (output started at /home/warrior/public_html/Sources/SimpleSEF-Db/x00.php:1)
File: /home/warrior/public_html/Sources/Subs.php
Line: 3567, 3557 and 3558


That is the entry in the error log. :)

EDIT1:
This only happens when SEF is enabled putting in the code of .htaccess
If you keep it installed and do nothing, it won't happen.

EDIT2:
Other errors discovered:
2: Cannot modify header information - headers already sent by (output started at /home/warrior/public_html/Sources/SimpleSEF-Db/x00.php:1)
/home/warrior/public_html/Sources/Load.php
2258


2: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/warrior/public_html/Sources/SimpleSEF-Db/x00.php:1)
/home/warrior/public_html/Sources/Load.php
2254


2: Cannot modify header information - headers already sent by (output started at /home/warrior/public_html/Sources/SimpleSEF-Db/x00.php:1)
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 301



PS: This didn't happen when it was first installed. I then uninstalled it and reinstalled it. Between the gap of uninstall and reinstall, pretty URL's and AdvanceSEF were installed and uninstalled.

I hope this might give you a lead over it. :)

SlammedDime

Sounds like the x00.php file is corrupted in some way... does it still happen after you reinstalled?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Adish - (F.L.A.M.E.R)

#684
Yup, replaced all the files to test it once again. Still the same thing.


EDIT1:
Been trying pretty hard to get this mod working:
- Checked each and every code for the installation about 5 times.
- Installed it manually, ran add_settings.php manually.
- Deleted the previous database entries from smf_settings for SimpleSEF and then ran add_settings.php again
- Checked the presence of all the files.
- All the files related to this mod have the permissions of 755. (777 is not allowed)

Above process was done for a minimum of 5 times, and it still didn't resolve the question mark solution. As you said SlammedDime, something seems wrong with the files in SimpleSEF-Db. Very weird huh!

EDIT2:
- Uploaded all files in Binary, still no change.

Just to confirm, this is the .htaccess code for apache right?
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php

Adish - (F.L.A.M.E.R)


SlammedDime

I'm not really sure where to go on it... can you post a copy of the x00.php file from your installation?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Adish - (F.L.A.M.E.R)

I did notice that the 3rd and the 4th lines come together instead of being separate at times, but I did edit it later to make it show up properly.

File attached.

Antes

Quote from: Antes on May 14, 2010, 04:33:15 PM
i want SimpleSEF use /smf/.htaccess , how can i do this ?

may i bump this ?

Thank you :)

Adish - (F.L.A.M.E.R)


Achilles.

Alright, I'm just confused...
QuoteWorks with Apache (mod_rewrite required) or IIS7 (Microsoft URL Rewrite module required + web.config files in your directory)

How do I do the mod_rewrite? How would I know if my website is running Apache or IIS7?

When my SimpleSef is enabled... I only get this kind of changes:

http://mywebsite.com/home/board_2.0/
http://mywebsite.com/topic_4.0.html

How will I be able to make it http://www.yourboard.com/index.php?board=1.0 =>> http://www.yourboard.com/general_discussion/?

Thanks!

- All donations will proceed to my Youth Foundation.

http://poseidondesigners.tk/ -- Affordable Website Designs // Banners & More!

feline


Achilles.


- All donations will proceed to my Youth Foundation.

http://poseidondesigners.tk/ -- Affordable Website Designs // Banners & More!

truhe

Quote from: SlammedDime on May 12, 2010, 04:25:21 AM
I'll have test this to see what is causing it
Did you test it ? In my board the name is always replaced by the nick "Macy" which is the member with ID=1

feline

Quote from: Achilles. on May 23, 2010, 12:13:56 PM
How do I do the mod_rewrite? How would I know if my website is running Apache or IIS7?
On Admin - SimpleSEF you see follow
This section allows you to edit the options for SimpleSEF.

Note: If you enable this and start receiving 404 errors on your board, it is likely because .htaccess or web.config was not created, or your host does not have the mod_rewrite or Microsoft Url Rewrite module installed on the web server and you will not be able to use this mod. [Help]

Click on Help for more info ...

If you have a linux server, then you have a apache httpd  ;)

Fel

Achilles.

Quote from: feline on May 24, 2010, 10:28:54 AM
Quote from: Achilles. on May 23, 2010, 12:13:56 PM
How do I do the mod_rewrite? How would I know if my website is running Apache or IIS7?
On Admin - SimpleSEF you see follow
This section allows you to edit the options for SimpleSEF.

Note: If you enable this and start receiving 404 errors on your board, it is likely because .htaccess or web.config was not created, or your host does not have the mod_rewrite or Microsoft Url Rewrite module installed on the web server and you will not be able to use this mod. [Help]

Click on Help for more info ...

If you have a linux server, then you have a apache httpd  ;)

Fel

Yep, it does work... However, I've got a problem regarding the mod rewriting, it gives me this link: http://mywebsite.com/home//_4.0.html not mywebsite/general_discussions and the like.

- All donations will proceed to my Youth Foundation.

http://poseidondesigners.tk/ -- Affordable Website Designs // Banners & More!

feline

You use SMF2? I have never tested with 1.x
If you use SMF2, the cache is enabled and functionality?
What is the content of $boardurl?
You use other mods?

Fel

mrtrc266

QuoteFAQ:
Q: Does this mod work with AJAX Chat?
A:   Not at this time.  I have to do some further testing to see why.  I   believe it has to do with the .htaccess file and some part of the AJAX   Chat script not liking the redirect header.

AJAX Chat and SimpleSEF are working together just fine for me,  tested on SMF 2 RC3 and SMF 1.1.11.

I know there is an issue with Pretty URL's but it's an easy fix by adding this line of code to the .htaccess
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

kpac

Quote from: Achilles. on May 24, 2010, 10:32:24 AM
Yep, it does work... However, I've got a problem regarding the mod rewriting, it gives me this link: http://mywebsite.com/home/ [nofollow]/_4.0.html not mywebsite/general_discussions and the like.
This seems to be a problem with some kinds of server configs.

See my post here, which is of a similar problem.
http://www.simplemachines.org/community/index.php?topic=352351.msg2622401#msg2622401

Achilles.

#699
Quote from: kpac on May 24, 2010, 01:10:00 PM
Quote from: Achilles. on May 24, 2010, 10:32:24 AM
Yep, it does work... However, I've got a problem regarding the mod rewriting, it gives me this link: http://mywebsite.com/home//_4.0.html not mywebsite/general_discussions and the like.
This seems to be a problem with some kinds of server configs.

See my post here, which is of a similar problem.
http://www.simplemachines.org/community/index.php?topic=352351.msg2622401#msg2622401
Yeah, I think we have the same problem... But the error log gives me a different reason:

ERROR LOG:
http://mywebsite.com/home/index.php?8:
Undefined index: REQUEST_URL
File: /home/website/public_html/home/Sources/Subs.php
Line: 2879


Subs.php attached. Thanks!

- All donations will proceed to my Youth Foundation.

http://poseidondesigners.tk/ -- Affordable Website Designs // Banners & More!

Advertisement: