21
earplane
Re: Localhost problem
  • 2006/3/21 19:31

  • earplane

  • Just popping in

  • Posts: 35

  • Since: 2002/10/1


To be sure the filesets were identical I downloaded them from server and yes, the problem's still there. The next step would be to do the same with the database, but I doubt if that will make a difference. So I've got two suggestions:

1. Could some setting in php.ini be different? Maybe in combination with...

2. Would there be a setting in my xoops_version.php files that could trigger this problem?


Any thoughts welcome



22
earplane
Re: Localhost problem
  • 2006/3/21 15:55

  • earplane

  • Just popping in

  • Posts: 35

  • Since: 2002/10/1


Quote:
1) The code you posted doesn't make sense (to me). What is its purpose?

1. I've got the userid (integer) of an excisting user. I want to get this user's username. If this isn't how I should do it then blame it on the docs, but it works...:o)

Quote:
2) Do you have PHP debug enabled?

Yes. The only warnings relating to this module is irrelevant.

Quote:
3) Which XOOPS version are you using?

Both setups are 2.2.3. I've had very few problems with the site (after the initial problems), and I haven't gone back to 2.0.

Quote:
4) I think that the uname method is deprecated, and that you should be using getVar('uname') instead.

I tried replacing uname() with getVar('uname') and it works perfectly online, but the problem's still there on localhost.

Thank you for replying. Have you got a clue?



23
earplane
Re: Localhost problem
  • 2006/3/20 21:23

  • earplane

  • Just popping in

  • Posts: 35

  • Since: 2002/10/1


Repeat: could anyone sum up exactly what is needed to make the above snippet work in a module (includes, global declarations and so on)?

I'd really like to be able to work offline in Eclipse, but right now I'm back to ftp'ing files every couple of minutes.



24
earplane
Localhost problem
  • 2006/3/17 11:01

  • earplane

  • Just popping in

  • Posts: 35

  • Since: 2002/10/1


Hi,

How come this prints nothing on my localhost setup, but it works OK when I upload it to the server? The rest of my XOOPS setup works OK at home.

$user = new XoopsUser($someID);
$userName $user->uname();
echo 
$userName;




TopTop
« 1 2 (3)



Login

Username:
Password:

Lost Password? Register now!

Who's Online

68 user(s) are online (40 user(s) are browsing Support Forums)


Members: 0


Guests: 68


more...

Donat-O-Meter

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

Latest GitHub Commits