Rewrite not working v3.0 r469

Asked by Pats

HI,

Rewrite Engine is not working, it was working on my previous install of Jisko v2. Now On the Home page all links show like /?module=faq , /?module=register .

Also, the faq was working in v3.0 r439, just now copied the files of v3.0 r469 and now faq shows blank in between. Do i need to update the sql?

Thanks!
Pats

Question information

Language:
English Edit question
Status:
Solved
For:
Jisko Edit question
Assignee:
No assignee Edit question
Solved by:
Pats
Solved:
Last query:
Last reply:
Revision history for this message
Marcos Garcia (marcosgdf) said :
#1

1. Clean urls can be enabled at the admin interface
2. Faq is now completely independent of Jisko, well, I'll try to include it
in the release of Jisko 3.0, but you can modify it in the admin interface
(misc section)

Marcos.

El 21/04/2010 20:43, "Pats" <email address hidden> escribió:

New question #108072 on Jisko:
https://answers.launchpad.net/jisko/+question/108072

HI,

Rewrite Engine is not working, it was working on my previous install of
Jisko v2. Now On the Home page all links show like /?module=faq ,
/?module=register .

Also, the faq was working in v3.0 r439, just now copied the files of v3.0
r469 and now faq shows blank in between. Do i need to update the sql?

Thanks!
Pats

--
You received this question notification because you are an answer
contact for Jisko.

Revision history for this message
Pats (pats) said :
#2

Hi Marcos,

1. Clean URLS didn't clean my thing... after i checked it and clicked Save
got errors..
Deprecated: Function ereg_replace() is deprecated in /h/gf/public_html/includes/router.php on line 31
Deprecated: Function ereg_replace() is deprecated in /h/gf/public_html/includes/router.php on line 32

tried to change it to preg_replace and got Warning...
Warning: preg_replace() [function.preg-replace]: No ending delimiter '^' found in /h/gf/public_html/includes/router.php on line 31

Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in /h/gf/public_html/includes/router.php on line 32

the lines 31,32 of router.php are:
$route = ereg_replace('^\/', '', $route);
$route = ereg_replace('\/$', '', $route);

suggestions?? since i'm stuck with headers already sent... bla.. bla...

Thanks,
Pats

Revision history for this message
Marcos Garcia (marcosgdf) said :
#3

done in last revision :D

thanks!

Revision history for this message
Pats (pats) said :
#4

Marcos,

the issue is still after me...

After uploading the latest r470, login & click on the Clean Urls, click Save...

Now i'm getting:
This webpage has a redirect loop.

The webpage at http://www.gxxxu.in/notes has resulted in too many redirects.

Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

what to do??
Thanks
Pats

Revision history for this message
Marcos Garcia (marcosgdf) said :
#5

what the...? maybe you should enable Shared_host in your config.php?

IDK :S

On Wed, Apr 21, 2010 at 10:48 PM, Pats <<email address hidden>
> wrote:

> Question #108072 on Jisko changed:
> https://answers.launchpad.net/jisko/+question/108072
>
> Status: Answered => Open
>
> Pats is still having a problem:
> Marcos,
>
> the issue is still after me...
>
> After uploading the latest r470, login & click on the Clean Urls, click
> Save...
>
> Now i'm getting:
> This webpage has a redirect loop.
>
> The webpage at http://www.gxxxu.in/notes has resulted in too many
> redirects.
>
> Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
>
> what to do??
> Thanks
> Pats
>
> --
> You received this question notification because you are an answer
> contact for Jisko.
>

--
marcos garcía // <email address hidden>

Revision history for this message
Pats (pats) said :
#6

Marcos... its already enabled...
define('SHARED_HOST', true);

any other setting??

Revision history for this message
Marcos Garcia (marcosgdf) said :
#7

have you tried disabling it?

El 22/04/2010 6:03, "Pats" <email address hidden> escribió:

Question #108072 on Jisko changed:
https://answers.launchpad.net/jisko/+question/108072

Status:...
Marcos... its already enabled...
define('SHARED_HOST', true);

any other setting??

--

You received this question notification because you are an answer
contact for Jisko.

Revision history for this message
Pats (pats) said :
#8

yeah tried disabling both ways...
//define('SHARED_HOST', true);
define('SHARED_HOST', false);

but no luck...

2 errors i noticed in error_log

1) PHP Parse error: syntax error, unexpected ';' in /h/gf/public_html/pages/opensearch.php on line 48

2) PHP Warning: array_key_exists() expects parameter 2 to be array, boolean given in /h/gf/public_html/includes/jisko.php on line 214

Revision history for this message
Marcos Garcia (marcosgdf) said :
#9

Fixed in the last revision... but I don't really know if the 2nd bug has any
solution.

Regards, Marcos.

On Thu, Apr 22, 2010 at 11:34 AM, Pats <<email address hidden>
> wrote:

> Question #108072 on Jisko changed:
> https://answers.launchpad.net/jisko/+question/108072
>
> Status: Answered => Open
>
> Pats is still having a problem:
> yeah tried disabling both ways...
> //define('SHARED_HOST', true);
> define('SHARED_HOST', false);
>
> but no luck...
>
>
> 2 errors i noticed in error_log
>
> 1) PHP Parse error: syntax error, unexpected ';' in
> /h/gf/public_html/pages/opensearch.php on line 48
>
> 2) PHP Warning: array_key_exists() expects parameter 2 to be array,
> boolean given in /h/gf/public_html/includes/jisko.php on line 214
>
> --
> You received this question notification because you are an answer
> contact for Jisko.
>

--
marcos garcía // <email address hidden>

Revision history for this message
Pats (pats) said :
#10

hmm.. but the situation remains same...

Homepage loads ok first time... as soon as i click the Public Notes link or click the Login button it goes to endless redirects.

(to test, i installed the latest v2.0 in a subdirectory and it works fine. URL Rewrite is working on it.)

any clue ?

Revision history for this message
Pats (pats) said :
#11

Marcos, for the time being, i opened phpmyadmin and disabled the Clear Flags.
So now there are no endless Redirects now and No URL Rewrite.

Do let me know if u got a solution to this so that i can fix mine.
Or if you want to check any details on the server then you have the FTP credentials..

Thanks,
Pats

Revision history for this message
Marcos Garcia (marcosgdf) said :
#12

Endless redirects? :S

I have to see that... Let me check it tomorrow...

On Thu, Apr 22, 2010 at 9:36 PM, Pats
<email address hidden>wrote:

> Question #108072 on Jisko changed:
> https://answers.launchpad.net/jisko/+question/108072
>
> Status: Answered => Open
>
> Pats is still having a problem:
> hmm.. but the situation remains same...
>
> Homepage loads ok first time... as soon as i click the Public Notes link
> or click the Login button it goes to endless redirects.
>
> (to test, i installed the latest v2.0 in a subdirectory and it works
> fine. URL Rewrite is working on it.)
>
> any clue ?
>
> --
> You received this question notification because you are an answer
> contact for Jisko.
>

--
marcos garcía // <email address hidden>

Revision history for this message
Pats (pats) said :
#13

ok... do let me know when you want to see that... so that i can activate the Clean URLs and you get the taste of the endless redirects.... :)

Thanks
Pats

Revision history for this message
Pats (pats) said :
#14

Hi Marcos,

Clean URLs activated again...
Again its redirct loop...
pls check..

Thanks,
Pats

Revision history for this message
Urosh85 (urosh85) said :
#15

And I have a similar problem, you turn on Clean URL appears to me

"The page is not redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept
          cookies. "

Everything OK for me, but I wanted to my Clean URLs Enabled

Sorry for my bad English

Revision history for this message
Pats (pats) said :
#16

yes Urosh, you are right.

Endless Redirect error on Browser comes only after Clean URLs is Enabled.

Once you Disable again in database through phpmyadmin then website loads normal.

Revision history for this message
Urosh85 (urosh85) said :
#17

And is there a solution?

Revision history for this message
Pats (pats) said :
#18

@Urosh85 , since its now linked to a Bug https://bugs.launchpad.net/bugs/576488
u can expect Marcos to find and kill that Bug soon...

Till then sit tight.. :)
Pats

Revision history for this message
Urosh85 (urosh85) said :
#19

Still waiting for a solution? :P xD

Revision history for this message
Pats (pats) said :
#20

yeah... i have put my seat-belt also.... and sitting tight... :)

Revision history for this message
Marcos Garcia (marcosgdf) said :
#21

Please waiit :(

I was busy with the migration script and now I'm fixing last reported bugs.

Thanks for your patience!

On Tue, May 11, 2010 at 7:24 PM, Pats
<email address hidden>wrote:

> Question #108072 on Jisko changed:
> https://answers.launchpad.net/jisko/+question/108072
>
> Pats posted a new comment:
> yeah... i have put my seat-belt also.... and sitting tight... :)
>
> --
> You received this question notification because you are an answer
> contact for Jisko.
>

--
marcos garcía // <email address hidden>

Revision history for this message
Pats (pats) said :
#22

no worries... Marcos ...
i was going to add the same....

Urosh85 we need to have that 'Patience' and give some time to Marcos for fixing+testing since its already accepted as Bug

cue: i watch the Bug link daily once to check if any updates coming... :)

regards,
Pat

Revision history for this message
Marcos Garcia (marcosgdf) said :
#23

I've fixed a problem with SHARED_HOST, could you please download the latest
includes/jisko.php file and then try enabling/disabling SHARED_HOST?

On Tue, May 11, 2010 at 7:39 PM, Marcos Garcia <
<email address hidden>> wrote:

> Question #108072 on Jisko changed:
> https://answers.launchpad.net/jisko/+question/108072
>
> Status: Open => Answered
>
> Marcos Garcia proposed the following answer:
> Please waiit :(
>
> I was busy with the migration script and now I'm fixing last reported
> bugs.
>
> Thanks for your patience!
>
> On Tue, May 11, 2010 at 7:24 PM, Pats
> <email address hidden>wrote:
>
> > Question #108072 on Jisko changed:
> > https://answers.launchpad.net/jisko/+question/108072
> >
> > Pats posted a new comment:
> > yeah... i have put my seat-belt also.... and sitting tight... :)
> >
> > --
> > You received this question notification because you are an answer
> > contact for Jisko.
> >
>
>
> --
> marcos garcía // <email address hidden>
>
> You received this question notification because you are an answer
> contact for Jisko.
>

--
marcos garcía // <email address hidden>

Revision history for this message
Pats (pats) said :
#24

i just downloaded, queued it on FTP and noticed ur message....

i'll update u shortly...

Revision history for this message
Pats (pats) said :
#25

nope.... no luck.... i updated all the files or v3.0 r508 (over r503)

- checked config.php - SHARED_HOST was True
- activated Clean URLs
- site went on Redirect loop

u can check - http://tinyurl.com/ykjm3df
Home page will load ok.... click on Public Notes or click any link
it'll go in Redirect loop

(in the Status Bar it shows Waiting for cache.... waiting for www..... )

if needed u can login to FTP and check (u have my FTP credentials)

thanks,
Pats

Revision history for this message
Pats (pats) said :
#26

commented SHARED_HOST and uploaded....

still it doesn't help... :(

Revision history for this message
Pats (pats) said :
#27

its working now - v3.0 r515

great job Marcos !!
Thanks :)

Revision history for this message
Urosh85 (urosh85) said :
#28

I will wait for stable version 3 ... I hope that will quickly remove Marcos, as competition goes any further :)

The reason why waiting for a stable version, I have not much time, and do not want to lose so much time trying to correct mistakes, just do not understand much of the programming ...

I hope you understand me :)

Revision history for this message
Marcos Garcia (marcosgdf) said :
#29

What did you mean by 'I hope that will quickly remove Marcos, as competition
goes any further'?

On Tue, May 11, 2010 at 11:21 PM, Urosh85 <
<email address hidden>> wrote:

> Question #108072 on Jisko changed:
> https://answers.launchpad.net/jisko/+question/108072
>
> Urosh85 posted a new comment:
> I will wait for stable version 3 ... I hope that will quickly remove
> Marcos, as competition goes any further :)
>
> The reason why waiting for a stable version, I have not much time, and
> do not want to lose so much time trying to correct mistakes, just do not
> understand much of the programming ...
>
> I hope you understand me :)
>
> --
> You received this question notification because you are an answer
> contact for Jisko.
>

--
marcos garcía // <email address hidden>

Revision history for this message
Urosh85 (urosh85) said :
#30

- "I hope that Marcos will quickly remove all errors and bugs"

Sorry Marcos, I quickly wrote: S .. Sorry for misunderstanding

A little worse and we go to write the English language xD

Marcos, we would perhaps help to raise Jisko on my hosting? So that all worked OK! ...
And I'll do you revoke a different way, interpreting the Serbian and Bosnian language, for example, or something ....
Dissemination of "Jisko" applications in this part of Europe ... etc. etc.

I am from Serbia, and we here do not have anything like as Jisko, and truly make every effort to make something for this area