Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
First argument should be an array in extract() of publish.php
Hello
I’ve installed TP first time in http://devsup.de/
I’ve extracted the files and created a config.php containing all necessary informations for the database access.
The I get the following error message:
Warning: extract() [function.extract]: First argument should be an array in /home/devsupde/http/pub/textpattern/publish.php on line 56
Unknown section
Can someone give me a hint to solve this problem?
Thanks for all help
Best regards
Wolfgang
Offline
Re: First argument should be an array in extract() of publish.php
Did you go through setup as is explained in the instructions?
Offline
Re: First argument should be an array in extract() of publish.php
I believe 5 times …
Offline
Re: First argument should be an array in extract() of publish.php
I am asking, because you do not need to this manually:
and created a config.php containing all necessary informations for the database access.
because setup will prompt you with what to put in config.php.
Did you get any error-messages after setup ran? What happens when you log.in to the backend?
Offline
Re: First argument should be an array in extract() of publish.php
Hello
Sorry the old posting has been something damaged
I have done the installation part:
> Installation
> * Extract the files to your site (in the web root, or choose a
> subdirectory). The top-level index.php should reside in this
> directory, as should the /textpattern/ directory.
> * Create, or establish the existence of, a working mysql database,
> load /textpattern/setup/ (or /subpath/textpattern/setup/ )
> in a browser, and follow the directions.
The config.php works correctly and I can connect to the DB.
In the config.php, this path is correct:
$txpcfg[‘txpath’] = ‘/home/devsupde/http/pub/textpattern/textpattern’;
And the next step is to go to the Admin-Area and then I find the message:
Warning: extract() [function.extract]: First argument should be an array in /home/devsupde/http/pub/textpattern/textpattern/publish.php on line 56
Best regards
Wolfgang Uhr
Offline
#6 2006-07-18 22:45:56
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: First argument should be an array in extract() of publish.php
Did you actually run and complete the setup script at /textpattern/setup/?
Last edited by zem (2006-07-18 22:46:38)
Alex
Offline
Re: First argument should be an array in extract() of publish.php
You have uloaded textpattern here:
http://devsup.de/textpattern/
So your admin-directory is here:
http://devsup.de/textpattern/textpattern/
The setup directory is here:
http://devsup.de/textpattern/textpattern/setup/
A simply way to find out whether you ran setup or not: Did you get asked, in a form, the details for connecting to a database? Were you asked to create a user-account? If not, then you didn’t run setup.
The instructions don’t tell you to manually edit config.php or input any values. It doesn’t matter if the values are correct or not. If you create a config.php file before running setup, you will not be able to even run setup…
Last edited by Sencer (2006-07-18 23:58:03)
Offline
Re: First argument should be an array in extract() of publish.php
Oh thank you it works …
It’s the wrong place but it works …
Offline
#9 2006-07-19 21:34:25
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: First argument should be an array in extract() of publish.php
It’s the wrong place but it works…
?
Offline