PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Can't get any example for Liveuser to work?

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication
View previous topic :: View next topic  
Author Message
Arnold



Joined: 14 Aug 2007
Posts: 19
Location: Canada

PostPosted: Sat Feb 16, 2008 4:52 am    Post subject: Can't get any example for Liveuser to work? Reply with quote

Can someone enlighten me with some ideas why I can't get any example in this package to work.... I have used many other packages without problem.

I can't get any example to work.

Example 1: (Auth/XML)
Whenever I click "login", a pop up window will show up with the following two error messages:

18:44:35.23 Critical There is an error in the configuration parameters
18:44:35.23 Critical Unknown error

Example 4: (Auth/MDB2)
I try to create a database using demodata.php and receive the following error:

I could not populate the database, see error below
MDB2_Schema Error: schema validation error
Parser error: length has to be an integer greater 0 - No error - Byte: 24710; Line: 1651; Col: 9
Back to top
View user's profile Send private message
Arnold



Joined: 14 Aug 2007
Posts: 19
Location: Canada

PostPosted: Wed Feb 20, 2008 4:04 am    Post subject: Reply with quote

Answers to my own questions.

Example 1:
I installed Auth and Perm folders to the wrong level. They should be placed under /PEAR/LiveUser instead of /PEAR. It is not quite obvious as I installed them manually from the ZIP file and the main file LiveUser.php is placed in /PEAR. May be the bundled file should create the LiveUser folder and place Auth and Perm inside it.

Example 4:

Created a bug report here http://pear.php.net/bugs/bug.php?id=13154
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Wed Feb 20, 2008 8:43 am    Post subject: Reply with quote

Arnold wrote:
Example 1:
I installed Auth and Perm folders to the wrong level. They should be placed under /PEAR/LiveUser instead of /PEAR. It is not quite obvious as I installed them manually from the ZIP file and the main file LiveUser.php is placed in /PEAR. May be the bundled file should create the LiveUser folder and place Auth and Perm inside it.


No, it shouldn't. PEAR packages are not meant to be installed by extracting the archive file (which BTW isn't a ZIP archive). This might change in the future, but currently this doesn't work for several packages. Search the forum if you want more examples, e.g. like the QF_AMS package.
Back to top
View user's profile Send private message
Arnold



Joined: 14 Aug 2007
Posts: 19
Location: Canada

PostPosted: Thu Feb 21, 2008 1:06 am    Post subject: Reply with quote

I prefer to place the whole PEAR framework as part of my libraries so I don't have to worry about hosting environment. I thought many developers would do the same thing.
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Thu Feb 21, 2008 4:52 pm    Post subject: Reply with quote

Arnold wrote:
I prefer to place the whole PEAR framework as part of my libraries so I don't have to worry about hosting environment. I thought many developers would do the same thing.


Well, yes. You can still do this, but you should make the initial installation in your development environment with the PEAR installer. The problem is not only with the directory structure in the .tgz files, but also the fact that some packages use the replacement feature of the installer, i.e. the installer replaces some variables in the installed files with values according to your environment (e.g. the path to the PEAR data directory).

In most cases you can still copy your complete PEAR directory to a remote server via FTP (just an example) or put the PEAR files into your own version control system. In fact, I also do this -- but I also use the PEAR installer for installing and updating the packages.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Authentication All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software