Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 04:01:36 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Error messages in Gallery module  (Read 492 times)
mikejd

Offline Offline

Posts: 140


« on: April 06, 2009, 10:40:55 AM »

I am trying to use the gallery module on one of my pages but i get a couple of error messages which relate to undefined variables.

When the gallery displays the first image I get :

Notice: Undefined variable: previous_link in E:\domains\d\deveron-arts.com\user\htdocs\wb\modules\gallery\view.php on line 434

showing above the image, see http://www.deveron-arts.com/wb/pages/gallery/tea-with-thato-senzeni147.php.

In the site admin, when I look at the Settings there is an error message :

Notice: Undefined variable: popcheck in E:\domains\d\deveron-arts.com\user\htdocs\wb\modules\gallery\modify_settings.php on line 199
>

between the radio button and 'In a Pop Up'.

Also, if I look at the source code the footer section shows

<tr style="display:  [DISPLAY_PREVIOUS_NEXT_LINKS]">. I presume this should show something like 'display:none;' but there seems to be nowhere to set this variable.

The WB version is 2.6.5 and the gallery version is 1.9c.

Any suggestions or help appreciated.

Mike
Logged
mr-fan

Offline Offline

Posts: 1538


WWW
« Reply #1 on: April 06, 2009, 11:05:16 AM »

unfortunally i'm no coder -but!

i would not invest more time with this gallery.....

on such a long site/article/else there you must scroll down every "next" or "last" picture!

the site evertime load new and start up on the top...

so for your needs this gallery don't fit

just an impression

regards martin
Logged

 
Ruud
Board member
WebsiteBaker Org e.V.

Offline Offline

Posts: 2094



WWW
« Reply #2 on: April 06, 2009, 11:23:20 AM »

Notice: Undefined variable: previous_link in E:\domains\d\deveron-arts.com\user\htdocs\wb\modules\gallery\view.php on line 434
....
Notice: Undefined variable: popcheck in E:\domains\d\deveron-arts.com\user\htdocs\wb\modules\gallery\modify_settings.php on line 199

Technically these messages are no errors. They are notices.
Nothing is going wrong, the PHP engine is just telling you that the developer originally wanted to display something, but there is nothing to display. (like: this is first image, there is no previous image link)
A developer could use these messages to improve the code.

Just go to the settings-page, click an "Advanced settings" button and set the errorlevel (currently set to E_ALL) to E_NONE. (In live servers, you never want to display errors to your customers.)
On test and development servers you could/should set it to E_ALL^E_NOTICE. This tells PHP to display errors but not the notices (like you see now).

Ruud

Logged

Professional WebsiteBaker Developer
mikejd

Offline Offline

Posts: 140


« Reply #3 on: April 06, 2009, 12:33:44 PM »

Ruud,
Thanks for the advice. However, in Advanced Settings>>General settings>>PHP Error Reporting Level there is no E_NONE in the drop down list. Available options are :

System default - current setting
E_ERROR
E_WARNING
E_PARSE
E_NOTICE
E_CORE_ERROR
E_CORE_WARNING
E_COMPILE_ERROR
E_COMPILE_WARNING
E_USER_ERROR
E_USER_WARNING
E_USER_NOTICE
E_ALL
E_STRICT

Which should I set?

Martin, thanks for the comment. I agree the gallery is a bit of a pain reloading to the top of the page each time but we are still trying this out at the moment and it is likely to change anyway.

Mike
Logged
Ruud
Board member
WebsiteBaker Org e.V.

Offline Offline

Posts: 2094



WWW
« Reply #4 on: April 06, 2009, 12:50:30 PM »

The correct advice would be to upgrade to the current WB version (2.7).

With these settings you should probably best use E_ERROR (assuming that is the highest errorlevel).

Ruud
Logged

Professional WebsiteBaker Developer
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!