Welcome to Geeklog, Anonymous Monday, December 30 2024 @ 12:07 pm EST

Geeklog Forums

error running install.php


Status: offline

xucaen

Forum User
Junior
Registered: 01/08/06
Posts: 24
Hi, I am reinstalling from scratch Geeklog v1.4.1. when I load up the install.php I get these errors. I did put the correct path to config.php..


Warning: require_once(/path/to/geeklog/system/databases/mysql.class.php) [function.require-once]: failed to open stream: No such file or directory in /home/geekytec/public_html/media/system/lib-database.php on line 117

Fatal error: require_once() [function.require]: Failed opening required '/path/to/geeklog/system/databases/mysql.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php'Wink in /home/geekytec/public_html/media/system/lib-database.php on line 117
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
If it still says /path/to/geeklog (as it does in the error message you quoted) then you did not set the path in config.php. Please double-check.

bye, Dirk
 Quote

Status: offline

xucaen

Forum User
Junior
Registered: 01/08/06
Posts: 24
Thanks, I forgot that config.php needed to be edited manually..
 Quote

Status: offline

xucaen

Forum User
Junior
Registered: 01/08/06
Posts: 24
I've tried several different configurations, and I keep getting this error after tables are created. I have verified that the tables are being created.

The error is on a blank page by itself:

Unfortunately, an error has occurred rendering this page. Please try again later.

Jim
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany

Status: offline

xucaen

Forum User
Junior
Registered: 01/08/06
Posts: 24
Thank you Dirk, all installed now. I was missing a trailing slash on one of my paths.

Jim
 Quote

jackdaw

Anonymous
I have also installed 1.4.1 and get similar problems. From the installation, everything in the installation's public_html folder is in a web accessible location which is password protected. Everything else has been put in the root (ie not accessible via a URL) and the required directories have been chmod to 777

The error is

Warning: Division by zero in /home/sites/stmichaelsschoolsoni.co.uk/config.php on line 74

Warning: main(system/databases/mysql.class.php) [function.main]: failed to open stream: No such file or directory in /home/sites/stmichaelsschoolsoni.co.uk/system/lib-database.php on line 117

Fatal error: main() [function.require]: Failed opening required 'system/databases/mysql.class.php' (include_path='.:/usr/share/pear'Wink in /home/sites/stmichaelsschoolsoni.co.uk/system/lib-database.php on line 117
 Quote

Status: offline

jackdaw

Forum User
Newbie
Registered: 02/06/08
Posts: 4
I have now registered, was in a hurry before and couldn't find the registration page.

I have also installed 1.4.1 and get similar problems. From the installation, everything in the installation's public_html folder is in a web accessible location which is password protected. Everything else has been put in the root (ie not accessible via a URL) and the required directories have been chmod to 777

The error is

Warning: Division by zero in /home/sites/stmichaelsschoolsoni.co.uk/config.php on line 74

Line 74 in config.php reads
$_CONF['path_html'] = '/home/sites/stmichaelsschoolsoni.co.uk/public_html/gl_files/';


Warning: main(system/databases/mysql.class.php) [function.main]: failed to open stream: No such file or directory in /home/sites/stmichaelsschoolsoni.co.uk/system/lib-database.php on line 117

Fatal error: main() [function.require]: Failed opening required 'system/databases/mysql.class.php' (include_path='.:/usr/share/pear' in /home/sites/stmichaelsschoolsoni.co.uk/system/lib-database.php on line 117

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
I don't see how your line 74 could cause a "division by zero". Often, the actual problem is a few lines before the line reported in the error message.

In this case, make sure that the four lines before it are still valid PHP comments, i.e. start with //

bye, Dirk
 Quote

Status: offline

jackdaw

Forum User
Newbie
Registered: 02/06/08
Posts: 4
I downloaded a clean copy of config.php and changed the paths and urls once more. This time it worked although I haven't gone back and checked the two copies just yet as I've got the bit between my teeth and I now have another problem.

The database has been set up sucessfully but when I run /admin/install/check.php the test fails on 4 of the 7 items tested as follows:

Testing backend directory /home/sites/stmichaelsschoolsoni.co.uk/gl_files/backend/ ...
Could not open the RSS file /home/sites/stmichaelsschoolsoni.co.uk/gl_files/backend/geeklog.rss for writing
Please check that you have set both the backend directory and the geeklog.rss file in that directory to chmod 775. Current permissions for backend: 0
Current permissions for geeklog.rss: 0


Testing userphotos directory /home/sites/stmichaelsschoolsoni.co.uk/gl_files/images/userphotos/ ...
Could not write to /home/sites/stmichaelsschoolsoni.co.uk/gl_files/images/userphotos/.
Please make sure this directory exists and is set to chmod 775.
Current permissions for userphotos: 0

Testing articles directory /home/sites/stmichaelsschoolsoni.co.uk/gl_files/images/articles/ ...
Could not write to /home/sites/stmichaelsschoolsoni.co.uk/gl_files/images/articles/.
Please make sure this directory exists and is set to chmod 775.
Current permissions for articles: 0

Testing topics directory /home/sites/stmichaelsschoolsoni.co.uk/gl_files/images/topics/ ...
Could not write to /home/sites/stmichaelsschoolsoni.co.uk/gl_files/images/topics/.
Please make sure this directory exists and is set to chmod 775.
Current permissions for topics: 0

They were chmod 775 prior to the check. They have now been chmod to 777 but running the install check again, I still get the same error.

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
My guess is that the permissions on your gl_files directory are too restrictive.

bye, Dirk
 Quote

Status: offline

jackdaw

Forum User
Newbie
Registered: 02/06/08
Posts: 4
I've removed the password protection but I still get the errors.

On a different note, and althought I probably can't use the installation just yet, how do I log on to my geeklog? Is the page called index.php 'cos at the moment, I'm getting template errors saying it's not a directory.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The password protection shouldn't matter, as that script is trying to access the directories on the filesystem level. The password protection only protects against HTTP requests. Double-check the permissions on gl_files and all the directories below.

There's a login box on pretty much every page in the left side block (unless you moved it). You'll need to resolve the template error first, though.

bye, Dirk
 Quote

jackdaw

Anonymous
All sorted and it really is all down to the paths and urls in config.php. In fact, when the paths and urls are correct, they are so obvious. Thank you for your help Dirk.

One last question though; I've forgotten my admin password. Where is it set?
 Quote

Status: offline

jackdaw

Forum User
Newbie
Registered: 02/06/08
Posts: 4
Everything is now working as it should. All I've got to do now is understand how it works! I thought installation was the hardest! LOL
 Quote

All times are EST. The time is now 12:07 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content