| View previous topic :: View next topic |
| Author |
Message |
Arnold
Joined: 14 Aug 2007 Posts: 19 Location: Canada
|
Posted: Sat Feb 16, 2008 4:52 am Post subject: Can't get any example for Liveuser to work? |
|
|
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 |
|
 |
Arnold
Joined: 14 Aug 2007 Posts: 19 Location: Canada
|
Posted: Wed Feb 20, 2008 4:04 am Post subject: |
|
|
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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1051
|
Posted: Wed Feb 20, 2008 8:43 am Post subject: |
|
|
| 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 |
|
 |
Arnold
Joined: 14 Aug 2007 Posts: 19 Location: Canada
|
Posted: Thu Feb 21, 2008 1:06 am Post subject: |
|
|
| 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 |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1051
|
Posted: Thu Feb 21, 2008 4:52 pm Post subject: |
|
|
| 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 |
|
 |
|