News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

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

Ensiferous

Update on my issues: Quote thing was unrelated and the PM giving a white page seems to be as well, The request never even hits my rewrite, which is absurdly weird.
My Latest Blog Post: Debugging Nginx Errors

SlammedDime

Thanks for the update.

Here's an update of my own.  I'll be backporting this to SMF 1.1.x.  It'll be quite easy to do after reviewing the code.  I'll update the mod with the dlattach bug fix at the same time I update it for 1.1.x.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Ensiferous

Actually, I get this error:

Wrong value type sent to the database. Integer expected. (member)
Function: getUserName
Apply Filter: Only show the errors from this file
File: /home/entrom/public_html/forum3/Sources/SimpleSEF.php
Line: 526

When I try to view the PM page, so it must reach the forum... The reason I thought it was unrelated was because doing echo 'hi'; in index.php didn't cause any output. Doing a die() did though.
My Latest Blog Post: Debugging Nginx Errors

underfire

Quote from: SlammedDime on December 09, 2009, 08:14:25 PM
Underfire, I'll try and check on this tomorrow.  Are you using version 1.0.1?

yes i am using 1.0.1

Ensiferous

Another update.

The quote thing is because the link goes to

?action=quotefast;quote=501579;foo=bar;xml
instead of
index.php?action=quotefast;quote=501579;foo=bar;xml

If I disable SimpleSEF then the former provides the proper XML output. I'm not sure if this is my nginx rewrite or not, it really just transfer all query arguments as-is.
My Latest Blog Post: Debugging Nginx Errors

SlammedDime

Might be because of your 'Default Document' setting in nginx.  If 'Default Document' has .html or .htm before .php in the order, and you happen to have one of those files as well (index.), that could be why.  I'll put a fix in not to change the smf_scripturl variable in the javascript so this doesn't happen.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

Quote from: Ensiferous on December 10, 2009, 04:15:12 AM
Actually, I get this error:

Wrong value type sent to the database. Integer expected. (member)
Function: getUserName
Apply Filter: Only show the errors from this file
File: /home/entrom/public_html/forum3/Sources/SimpleSEF.php
Line: 526

When I try to view the PM page, so it must reach the forum... The reason I thought it was unrelated was because doing echo 'hi'; in index.php didn't cause any output. Doing a die() did though.
Interesting... I thought I did some checks to prevent that... I'll have to revisit that.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mirahalo

#107
I just want to say that I successfully went from pretty urls mod ( thanks Daniel15 for that awesome mod too ;) ) to simpleSEF,  all went smoothly,  SimplePortal works great with it,  also ディン1031's Thank-O-Matic mod, the sitemap shows the new urls without doing nothing ;)   so, I just wanna say thank you SlammedDime  for this mod   ;D


ok, maybe too early to celebrate ;)  my users are having problems, they can´t give thank you in the post, when they click on the thank you link, then an entire page appears,  heres an example:   h**p://oharascans.com/foro/thankyou/msg/4462/noticias/ares_26_.por_ohara_team._1424.0.html   

nestortoledo

#108
Hi SlammedDime, i have installed the mod in www.clublgmobile.com/foro/ [nofollow] [nofollow], all appear to work fine, but after 4 hourser, my hosting provided has sended an email that my forum is consuming a lot of resoucer from the server, and the problemas was the mod. after disable the mod, the resources are normal.

They tell me that is not a 20% 40% more of resources, is a 2000% more.

what can be the problem?


This is part of my error_log
[Fri Dec 11 15:37:11 2009] [error] [client 217.216.95.30] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:37:11 2009] [error] [client 72.14.199.46] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:37:12 2009] [error] [client 217.216.95.30] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:37:36 2009] [error] [client 88.16.25.130] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:37:42 2009] [error] [client 217.216.95.30] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:38:10 2009] [error] [client 88.16.25.130] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:39:13 2009] [error] [client 88.16.25.130] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:39:59 2009] [error] [client 66.249.71.58] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:40:25 2009] [error] [client 88.16.25.130] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:40:32 2009] [error] [client 83.41.5.39] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:40:34 2009] [error] [client 83.41.5.39] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:41:40 2009] [error] [client 213.60.73.93] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:41:49 2009] [error] [client 66.249.71.58] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:41:59 2009] [error] [client 213.60.73.93] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:42:08 2009] [error] [client 84.124.220.230] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 178
[Fri Dec 11 15:42:19 2009] [error] [client 88.16.25.130] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:42:24 2009] [error] [client 84.124.220.230] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:43:00 2009] [error] [client 84.120.178.75] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169
[Fri Dec 11 15:43:01 2009] [error] [client 88.16.25.130] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /var/www/vhosts/clublgmobile.com/httpdocs/foro/Sources/SimpleSEF.php on line 169



Yağız...

SlammedDime, can you write a rule for Seo4SMF redirections? We have more than 103k links on Google, and all of them are with Seo4SMF. Now, we have installed SimpleSEF, and everything is gone.

SlammedDime

I see how those errors could happen, though they shouldn't under normal circumstances...  I'd have to see the access logs as well to see what URL is causing that.

In anycase, I'll fix up the code so it can't happen.  Essentially it's entering into a neverending while loop.

130860 - I'll have to install that mod and investigate.

Yagiz - I'll take a look, but I can't promise anything.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

SlammedDime

130860 - I installed 2.0RC1 of the Thank-o-matic mod and didn't have any issues with the mod and SimpleSEF.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

mirahalo

would you like to see it in my forum?  I can gladly send you a demo account if you want it.

SlammedDime

I don't think an account would help.  Are there any errors in your error log in your forum?

What I can do is this: I can make a modified SimpleSEF file for your board that will spit out some logging information into a file that will allow me to debug the mod.  Alternatively you can PM me FTP access to your board and I can do it that way, so we don't have to keep emailing files back and forth to each other, and it will be quicker too.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Xarcell

#114
Ok, so I go to "Administration Center » Features and Options » SimpleSEF", and I click "Enable SimpleSEF". The page reloads and the "Enable SimpeSEF" is un-ticked. Which I thought I read in an earlier post that was normal.

The URL's remain the same and they are not being re-written. There are no errors in my log. No 404 errors...

Although, I noticed that there is no .htaccess file in my SMF root. Is there supposed to be one? I tried creating one, but my FTP program(FileZilla) does not see it on my PC, but it can see hidden files in my SMF installation. So I can't figure out how to upload one with the info supplied with your "help" link of SimpleSEF.

EDIT: http://inspireromance.com/phpinfo.php

Yağız...

Read the first post.

Xarcell

Quote from: Yağız... on December 12, 2009, 09:31:35 AM
Read the first post.

Darn, I skimmed right over that part. My bad.

I also noticed something else. I kept getting SMF was unable to connect to the database. Once I removed the mod, I quit getting that error. At first I thought it was my host, but now I'm not so sure...


Am'

اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Am'

this mod stock the new url in new table in database ?
اذا أحس أحد انه لم يخطأ ابدا في حياته, فهذا يعني أنه لم يجرب أي جديد في حياته
My Mods For SMF 2 RC3 : XQuote XCode - Vbulletin Style New Meta Tags

Arantor

I believe Pretty URLs does, this one doesn't AFAIK.

Advertisement: