1
culex
MyWords 2.0.99 & Common Utilities 2.1.40
  • 2011/12/14 16:41

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Hey there....

I have just been testing these awesome modules but have run into some problems..

Using FF 8.0 and 9.0.8112
Xoops 2.5.4 final
PHP 5.3.8
mySQL 5.0.51a-24
Xlanguage 3.03 (could be the problem)

Install Common Utilities -> copyt theme -> set theme as default - > install MyWords

Everything works fine.. Initially the xLanguage doesn't translate admin text but after some browsing this works..

I set myWords as startpage in preferences and post a test news item..

Still everything looks very very nice.... then.

I switch language to check if xlanguage is showing different text in the startpage and then it gets wierd.

I get a "404: document not found" in all pages including admin.

If i delete editorlist.php and active_modules.php from xoops_cache remove redmexico as theme using phpMyAdmin and disabling both modules + clearing all cache folders I solve the problem and can go to my page as normal..

I have been trying to disable xlanguage and no-cache but still the same problem.

Anyone have this problem ??

P.S. The modules look great though..
Programming is like sex:
One mistake and you have to support it for the rest of your life.

2
bitcero
Re: MyWords 2.0.99 & Common Utilities 2.1.40
  • 2012/1/7 2:23

  • bitcero

  • Quite a regular

  • Posts: 318

  • Since: 2005/11/26


even in Control Panel?

Have you checked your server error log? Maybe there exists some information that can help us to solve this issue.

3
culex
Re: MyWords 2.0.99 & Common Utilities 2.1.40
  • 2012/1/7 16:31

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Hey there.. I just tested and now only get this big events in my live web...

I have now tested with xoops 2.5.4 in local server and there I looks great, even when MyWords is set as startpage..

Only thing still remaining in local server is the access error

127.0.0.1 - - [07/Jan/2012:17:10:50 +0100"GET /254/modules/mywords/index.php?lang=english HTTP/1.1" 404 4608


So the problemes in my live page must be something else not playing nice, I'll try to disable everything else and then get back to you.
Programming is like sex:
One mistake and you have to support it for the rest of your life.

4
culex
Re: MyWords 2.0.99 & Common Utilities 2.1.40
  • 2012/1/7 17:46

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


I managed to remove the 404 error when browsing translation via selector in XLanguage...

However I dont know if this removes some of the query protection in the module

I did this

in mywords/index.php line 23
if ($request=='' || $request=='index.php'){


I added another check to react if request is set -> goto home.php
if ($request == true || $request=='' || $request=='index.php'){
Programming is like sex:
One mistake and you have to support it for the rest of your life.

5
bitcero
Re: MyWords 2.0.99 & Common Utilities 2.1.40
  • 2012/1/7 18:21

  • bitcero

  • Quite a regular

  • Posts: 318

  • Since: 2005/11/26


Well, I've implemented XLanguaje selector by changing language directly on cookie with jquery and next events:

$("a.lang-es").click(function(){
    $.
cookie("domain_lang",'spanish', {path'/'});
    
location.reload();
});
        
$(
"a.lang-en").click(function(){
    $.
cookie("domain_lang",'english', {path'/'});
    
location.reload();
});


This lines prevent to touch the module files, and only requires to implement in theme.

6
culex
Re: MyWords 2.0.99 & Common Utilities 2.1.40
  • 2012/1/7 18:39

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Quote:

BitC3R0 wrote:
Well, I've implemented XLanguaje selector by changing language directly on cookie with jquery and next events:

$("a.lang-es").click(function(){
    $.
cookie("domain_lang",'spanish', {path'/'});
    
location.reload();
});
        
$(
"a.lang-en").click(function(){
    $.
cookie("domain_lang",'english', {path'/'});
    
location.reload();
});


This lines prevent to touch the module files, and only requires to implement in theme.


Thats pretty clever actually

NB. I have run a check again in my live web, uninstalled everything -> cleaned cache -> reinstalled xlanguage -> Rm theme / rxcommom / MyWords + also checked danish translation of both.... Might be here actually the error was :oS

there is big difference between
___ ()


And

___()


So looks like there errors was provoced by my translations
Programming is like sex:
One mistake and you have to support it for the rest of your life.

7
bitcero
Re: MyWords 2.0.99 & Common Utilities 2.1.40
  • 2012/1/7 19:29

  • bitcero

  • Quite a regular

  • Posts: 318

  • Since: 2005/11/26




Well if you need help... please tell me

8
easyb9
Re: MyWords 2.0.99 & Common Utilities 2.1.40
  • 2012/1/9 16:20

  • easyb9

  • Just popping in

  • Posts: 41

  • Since: 2011/8/10


Requirements:

- PHP 5.3
- XOOPS 2.4 or higher
- Common Utilities 2

Any problems if using PHP 5.2.x ?

9
bitcero
Re: MyWords 2.0.99 & Common Utilities 2.1.40
  • 2012/1/10 2:51

  • bitcero

  • Quite a regular

  • Posts: 318

  • Since: 2005/11/26


They really should not be problems, however it is recommended PHP 5.3 because is the version that has been tested and it is recommended for safety.

10
easyb9
Re: MyWords 2.0.99 & Common Utilities 2.1.40
  • 2012/1/11 19:14

  • easyb9

  • Just popping in

  • Posts: 41

  • Since: 2011/8/10


thank you.
and one more question,
was trying on wamp with xoops 2.5.4.the problem when user post the word it doesn't redirect to ../modules/mywords/index.php still on same page.
any code hack to make a redirection.

Login

Who's Online

174 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 174


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits