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:18 GMT - Fri 29 Mar 24

Login with username, password and session length
Pages: [1]
Author Topic: Undefined Variable  (Read 7894 times)
0 Members and Guests are viewing this topic.
taz01
Conscript
*******
Posts: 5


« at: 12:31 GMT - Sun 25 Nov 12 »

Dayo,

When I go to configure g2drupal and click on the "Save" button, I get the following. . . 

Notice: Undefined variable: extIdPref in /usr/www/users/saj716/xxxxx/gallery2/modules/g2drupal/AdminG2Drupal. inc on line 113

Warning: Cannot modify header information - headers already sent by (output started at /usr/www/users/saj716xxxxx/gallery2/modules/g2drupal/AdminG2Drupal. inc:113) in /usr/www/users/saj716/xxxxx/gallery2/modules/core/classes/GalleryPhpVm. class on line 142

Even when I click on the 'reset' button, I get the same except the first line will read
Notice: Undefined variable: AdminMode in /usr/www/users/saj716/xxxxx/gallery2/modules/g2drupal/AdminG2Drupal. inc on line 339

I've changed the Is_Empty to isEmpty
I have my paths set to
In D7
/usr/www/users/saj716/xxxxx/gallery2/ (Full path to Gallery2)
In G2
/usr/www/users/saj716/xxxxx/ (path to Drupal)

I have 12 variables/settings shown on the http. . . . . gallery2/v/admin/?g2_subView=g2drupal. AdminG2Drupal page in Gallery2 - g2drupal

Any ideas
 I'd love to get this setup in D7.
I currently have 19000+ pics using G2 and D6

If you need info, please let me know. . .
Thank you
Logged
Dayo
Sheriff
*
Posts: 447


WWW
« Reply #1 at: 06:05 GMT - Mon 26 Nov 12 »

Those are php warnings which really should not be switched on in a production setting.

That is, they are meant for developers to make sure everything is fine (I obviously didn't use this while developing the code).

In any case, for production, that is, normal day to day, usage, they should be switched off.

If you have access to your php.ini file, which where php settings are controlled, look in there for the error reporting settings and set them to the recommended production setting.

Alternatively, you can try placing the following at the top of your AdminG2Drupal.inc file immediately after the <?php tag.

Code:
error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));

I'll look into getting rid of the notices and such in the next release.
Logged
taz01
Conscript
*******
Posts: 5


« Reply #2 at: 11:19 GMT - Tue 27 Nov 12 »

Thanks for the reply! I was receiving that error after I turn on debugging in the Gallery2 config.

I had turned this on because I was getting a "Internal Module Error.  Please contact the module developer for support. "

I will put the line into the AdminG2Drupal. inc and see what happens.

Thanks
Logged
Dayo
Sheriff
*
Posts: 447


WWW
« Reply #3 at: 15:06 GMT - Tue 27 Nov 12 »

Well that msg is a different story. Thats the difficulty faced in giving support.

Users decide to do things and tell what they think should be told & it is often the wrong thing & wrong info leading to lots of wasted time :)

Back on topic, the internal module error problem needs me to check stuff to remind myself about the issue.

Unfortunately I am a bit busy right now but will try to find some time to look into it soon.
Logged
Dayo
Sheriff
*
Posts: 447


WWW
« Reply #4 at: 15:33 GMT - Tue 27 Nov 12 »

OK. I had a quick look and that message is generated when the module does not recognise your Drupal version.

Are you trying to tie it to a D6 installation? If not, please subscribe to the announcement thread to be notified when v0.9.3 is released.

Edit: You can download and try v0.9.3
« Last Edit: 15:54 GMT - Tue 27 Nov 12 by Dayo » Logged
taz01
Conscript
*******
Posts: 5


« Reply #5 at: 18:15 GMT - Tue 27 Nov 12 »

Using D7 with G2

I've had the D6 and G2 setup for quite sometime now.

I'll try the newest version tonight

Do I have the paths set correctly Both the G2 and the Drupal should end with a 'slash'?

In D7
/usr/www/users/saj716/xxxxx/gallery2/ (Full path to Gallery2)
In G2
/usr/www/users/saj716/xxxxx/ (path to Drupal)

- Thanks!

Logged
Dayo
Sheriff
*
Posts: 447


WWW
« Reply #6 at: 22:32 GMT - Tue 27 Nov 12 »

The app adds the ending slash if missing.
Logged
Pages: [1]
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