A+ | A - | RESET
Fixed | Wide | Full | Reset

Capture360.Net

Cover Every Angle

  Advanced search
Welcome, Guest. Please login or register.
Did you miss your activation email?
08:05 GMT - Fri 29 Mar 24

Login with username, password and session length
Pages: 1 [2]  All
Author Topic: error when trying to configure gallery2 module  (Read 14628 times)
0 Members and Guests are viewing this topic.
Dayo
Sheriff
*
Posts: 447


WWW
« Reply #15 at: 12:57 GMT - Mon 19 Nov 12 »

If that fails, try

Code:
define ('DRUPAL_ROOT', '/hermes/waloraweb055/b2277/scabattlerock');
require_once DRUPAL_ROOT . 'includes/bootstrap.inc';

In the same file
Logged
stevenyuko
Conscript
*******
Posts: 8


« Reply #16 at: 13:44 GMT - Mon 19 Nov 12 »

Yes.    Drupal and gallery both are installed as part of simple scripts one click install.    I even went and checked to make sure permissions were correct on the "include" folder which is currently 755 and bootstrap.   ince is 644.   
ok.     .       did two things.     
one:
added to main.     php at beginning and end of page as suggestion on web which cleared half of the errors:
Code:
<? ob_start(); ?>
<? ob_flush(); ?>

These are the errors that cleared because of the above code
Code:
Notice: Undefined index: g2drupal_email in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal. class on line 109

Warning: Cannot modify header information - headers already sent by (output started at /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal. class:109) in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal. class on line 110

Warning: Cannot modify header information - headers already sent by (output started at /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal. class:109) in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal. class on line 111

Notice: Undefined index: g2drupal_bounce in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal. class on line 113


Made change :   
Code:
require_once '.' . DRUPAL_ROOT . 'includes/bootstrap.inc'
error output now:
Code:
Parse error: syntax error, unexpected T_STRING in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal.class on line 1191


Tried your second suggestion.     
Code:
define ('DRUPAL_ROOT', '/hermes/waloraweb055/b2277/scabattlerock');
require_once DRUPAL_ROOT . 'includes/bootstrap.inc';
error output now:
Code:
Notice: Undefined index: g2drupal_email in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal.class on line 109

Notice: Undefined index: g2drupal_bounce in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal.class on line 113

Warning: require_once(/hermes/waloraweb055/b2277/scabattlerockincludes/bootstrap.inc) [function.require-once]: failed to open stream: No such file or directory in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal.class on line 1190

Fatal error: require_once() [function.require]: Failed opening required '/hermes/waloraweb055/b2277/scabattlerockincludes/bootstrap.inc' (include_path='.:/usr/local/lib/php-5.2.17/lib/php') in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal.class on line 1190

after looking at the error's I realized that the it was skipping a "/" between scabattlerock and includes so I went and changed the second part of the code to add the / before includes.    thought I might have hit bingo.  .  .  .   now a whole new set of errors:

Code:
Notice: Undefined index: g2drupal_email in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal.class on line 109

Notice: Undefined index: g2drupal_bounce in /hermes/waloraweb055/b2277/scabattlerock/gallery2/modules/g2drupal/classes/GalleryG2Drupal.class on line 113

Fatal error: Class 'Theme_Content_Parser' not found in /hermes/waloraweb055/b2277/scabattlerock/sites/all/modules/art_content/art_content.module on line 9
[/]
I'm using a artisteer created theme for my drupal page.   the art_content. module is a module used to import content from the theme into the drupal installation.   I wondering if as a test, I should switch over the the default theme to see if this magically fixes the problem.

by the way.   .   .    I do appreciate your time and patience as we work through this and thank you for your assistance.   
« Last Edit: 14:07 GMT - Mon 19 Nov 12 by stevenyuko » Logged
Dayo
Sheriff
*
Posts: 447


WWW
« Reply #17 at: 15:52 GMT - Mon 19 Nov 12 »

One click installs are usually bad news and probably lie behind a lot of the issues here.

In any case, you left the semi colon out of
Code:
require_once '.' . DRUPAL_ROOT . 'includes/bootstrap.inc';

PHP statements have to always end with semicolons, ";", or else you get an error.

Secondly, ignore the notices and warnings and remove the ob_start, ob flush stuff from the code. The only things that matter are errors.

Finally, I believe the issue is down to the one click install script and at this point, have to say I'll be updating the documentation to state that sites with Drupal and/or Gallery 2 installed using these or package managers are not supported.
Logged
Pages: 1 [2]  All
Jump to:  

Latest Posts
by Dayo
[21:04 GMT - Tue 19 Aug 14]

[22:20 GMT - Sat 16 Aug 14]

[21:15 GMT - Wed 09 Apr 14]

by Dayo
[17:18 GMT - Tue 21 Jan 14]

[15:55 GMT - Sun 15 Sep 13]
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Corto design TinyPortal v0.9.8 © Bloc
Configured by Dayo Akanji
Contact