Install Problem: The file "src/vars.php" is not writable! 'Please change the permissions for that file!'

Bug #276314 reported by tommyLee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zock!
Fix Committed
Low
Michael Schroeder

Bug Description

Hey there seems to be a problem with the easy installer. No matter what I do, the installer returns this error: 'The file "src/vars.php" is not writable! 'Please change the permissions for that file!'. I have changed all of the permissions for both vars.php and the installation folder to 777, so I don't know what the problem could be. I am using mediatemple gridserver. Any suggestions?

tommyLee (tommylee)
description: updated
Revision history for this message
Michael Schroeder (mpschroeder) wrote :

Hello

That seems weird. I tried to reinstall 0.5.1 on my local machin, and everything worked fine. Try once to set the rights for vars.php to 666, which would be "more correct". But actually, I am pretty clueless.
For the folder everything is fine?
If you know how to alter your database manually, you could try to remove the line where it checks if vars.php is writable (line 179).

If something works or not, or you found another solution, let me know over launchpad, thanks.

Greets, Michael

Revision history for this message
tommyLee (tommylee) wrote :
Download full text (8.1 KiB)

I tried uncommenting line 179 as well as 53 and I got it to write tables to the database. However, it returned the following errors:

writing src/vars.php

Warning: fopen(src/vars.php) [function.fopen]: failed to open stream: Permission denied in blablabla/html/installation/install.php on line 84
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
/*
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
===================================
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
zock!
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87

Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
Developed by
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
------------
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
* Michael Schroeder:
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
<email address hidden>
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
*
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
*
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87

Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
http://zock.sf.net
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87

Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
zock! is a free software licensed under GPL (General public license) v3
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
more information look in the root folder for "LICENSE".
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
===================================
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
*/
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87

Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
//IMPORTANT: In no case, edit this file by hand.
Warning: fwrite(): supplied argument is not a valid stream resource in blablabla/html/installation/install.php on line 87
//You may ask yourself why: It is processed by a script and if one space character or something m...

Read more...

Revision history for this message
Michael Schroeder (mpschroeder) wrote :

HI

I have really no idea why it would'nt work. It doesn't complain about installations?

And you should really edit your 2. post, since you made the data of oyur database public.

You can look at the file src.vars (in the installation folder, it is a template) and fill out what is needed in the variables. And then everything should be fine, I think.

Good Luck!

Revision history for this message
tommyLee (tommylee) wrote :

I got it installed and I got the tables pupulated, however it is still returning a lot of errors.

When I open up index.php after manually installing the tables and src.vars, the front page looks like this:

EMPTY: home_title

EMPTY: home_welcome

EMPTY: home_content

EMPTY: home_noevents

EMPTY: home_fun

How do I enter things like home_title and home_welcome? Can I do that by editing the tables template in the installation folder?

Revision history for this message
tommyLee (tommylee) wrote :

Also, index.php returns the following errors:

Warning: sort() expects parameter 1 to be array, null given in /functions.php on line 219

Warning: array_flip() [function.array-flip]: The argument should be an array in /functions.php on line 220

Warning: Invalid argument supplied for foreach() in /functions.php on line 221

Revision history for this message
tommyLee (tommylee) wrote :

I got zock working on a different server (aplus.net) - so it must have been a glitch with mediatemple. Ugg... Anyways thanks for the help on this one.

Revision history for this message
Michael Schroeder (mpschroeder) wrote :

Very well.
I wonder what was wrong with the other server.
Have fuN!

Changed in zock:
assignee: nobody → Michael Schroeder (mpschroeder)
status: New → Confirmed
status: Confirmed → Incomplete
importance: Undecided → Low
Revision history for this message
Michael Schroeder (mpschroeder) wrote :

Just for completenes, the bug is resolved

Changed in zock:
status: Incomplete → Fix Committed
Revision history for this message
Mark Perry (markperry) wrote :
Download full text (8.5 KiB)

Hi Michael,
I have a similar problem using Xampp for Mac. There doesn't seem to be a file src/vars.php.

writing src/vars.php

Warning: fopen(src/vars.php) [function.fopen]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 83

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects parameter 1 to be resource, boolean given in /Applications/XAMPP/xamppfiles/htdocs/zock/installation/install.php on line 85

Warning: fwrite() expects paramet...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.