Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 24, 2012, 11:52:38 AM
1 Hour
1 Day
1 Week
1 Month
Forever
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
.
155457
Posts in
21705
Topics by
7731
Members
Latest Member:
zvaigzdzius
WebsiteBaker Community Forum
Deutsch (German)
Hilfe/Support
(Moderator:
badknight
)
Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
Pages: [
1
]
Go Down
Author
Topic: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module (Read 1314 times)
Kazantip
Offline
Posts: 9
Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
on:
November 12, 2008, 11:40:27 AM »
Hi, hoffe ich bin hier richtig,
Ich habe bei mir daheim einen Windows Server 2003 laufen mit:
Apache 2.2.4
PHP 5.2.4
mySQL Server version: 5.0.51b-community-nt MySQL Community Edition (GPL)
WebsiteBaker 2.7
ich habe folgende extensions in PHP schon geladen:
extension=php_mysql.dll
extension=php_mbstring.dll
extension=php_gd2.dll
extension=php_exif.dll
aber leider funktionieren einige Module wie z.B. die "ImageFlow Gallery" nicht.
(es wird das Template verzogen und einfach nichts angezeigt)
Ich denke das es daran liegt das ich noch einige PHP Module (extensions) laden muss, ich weiß aber leider nicht welche.
Gibt es hier irgendwo eine liste mit den benötigten modulen??
Vielen Dank
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7972
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #1 on:
November 12, 2008, 11:59:45 AM »
Hallo,
hast du es schon einmal mit einem vorkonfigurierten Paket wie XAMPP von apachefriends.org probiert? Da läuft WB ohne dass man weitere konfigurationen vornehmen muss.
Matthias
Logged
Kazantip
Offline
Posts: 9
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #2 on:
November 12, 2008, 12:39:49 PM »
Hmm, kenn xampp schon, aber würde das gerne mit meiner bestehenden konfiguration hinbekommen. Auch aus rein lern technischen gründen.
Und WB läuft ja auch weitestgehend nur eben bis auf ein paar bestimmte Gallarien...
und da glaub ich fehlen mir php extensions
Logged
kweitzel
Forum administrator
Offline
Posts: 6975
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #3 on:
November 12, 2008, 12:52:56 PM »
Hallo, im moment sind diese Iinformationen für die meisten Module noch nicht verfügbar. Ich weiss aber, dass es in diese Richtung schon bemühungen gibt.
Ein Sache die mir aber dazu einfällt: Wenn es bestimmte Gallerien sind, die nicht funktionieren, hast Du den JS Aufruf in Deinem Template drin?
Code:
<?php
if(
function_exists
(
'register_frontend_modfiles'
)) {
register_frontend_modfiles
(
'css'
);
register_frontend_modfiles
(
'js'
);
}
?>
Siehe auch die
Hilfeseite
dazu.
Ansonsten wirst Du nicht darum herumkommen einen Link zu posten.
Gruß
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Kazantip
Offline
Posts: 9
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #4 on:
November 12, 2008, 01:14:45 PM »
Hallo,
ok danke, ich kenn mich mit php nicht so gut aus. aber ich gehe in den templates ordner und dann unter mein template und ergänze die index.php so das es so aussieht richtig??
Code:
<?php
include(
'menu_functions.php'
);
include(
'html_head.php'
);
?>
<?php
if(
function_exists
(
'register_frontend_modfiles'
)) {
register_frontend_modfiles
(
'css'
);
register_frontend_modfiles
(
'js'
);
}
?>
<body>
<?php
include(
'page_header.php'
);
?>
<div id="content">
<?php
include(
'text.php'
);
?>
<div id="image">
<img src="
<?php
echo
TEMPLATE_DIR
;
?>
/plants.jpg" alt="plants"/>
</div>
<div id="sideBar">
<?php
include(
'search.php'
);
include(
'login.php'
);
include(
'side_menu.php'
);
include(
'credits.php'
);
?>
</div>
<div id="footer">
<hr />
<?php page_footer
();
?>
<hr />
</div>
</div>
<?php
// end content div ;
?>
</body>
</html>
Und hier kann man sich mal anschauen wie es aussieht:
das ist z.B. die Gallarie "ImageFlow":
http://secure77.ath.cx/websitebaker/wb/pages/bilder/2d-bilder.php
so sieht das Template normal aus....:
http://secure77.ath.cx/websitebaker/wb/pages/bilder/3d-bilder.php
Danke
Logged
aldus
Offline
Posts: 1238
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #5 on:
November 12, 2008, 01:24:56 PM »
Der Seitenaufbau bricht mittendrin nach "<a id="wb_section_41" name="wb_section_41"></a>" ab ...
Du hast einen Parsing-Error irgendwo ... kannst Du mal unter Optionen den PHP-Errorlevel auf "E-STRICT und E_ALL"
stellen um an evtl. warnings und fatal-errors heran zu kommen?
Gruß
Aldus
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Offline
Posts: 7972
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #6 on:
November 12, 2008, 01:56:23 PM »
@kazantip
wenn du die head section per include reinholst, dass muss der code für register_frontend_m
odfiles in die html_head.php und nicht in die index.php. So wie du den in der index.php jetzt drin hast hängt er "in der der Luft" zwischen </head> und <body>, er müsste aber eigentlich vor das schließende </head>.
Hoffe das hilft dir weiter
Matthias
Logged
Kazantip
Offline
Posts: 9
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #7 on:
November 12, 2008, 06:45:34 PM »
Hi, vielen dank erstmal für die tipps,
ich hab grad nochmal in meinen error.log vom apache reingeschaut und ein paar fehler gefunden (kommen bei jedem zugriff auf die seite)
Code:
[Wed Nov 12 18:14:12 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 2 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://www.websitebaker2.org/forum/index.php/topic,11728.0.html
[Wed Nov 12 18:14:12 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 3 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://www.websitebaker2.org/forum/index.php/topic,11728.0.html
[Wed Nov 12 18:14:12 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 4 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://www.websitebaker2.org/forum/index.php/topic,11728.0.html
[Wed Nov 12 18:24:29 2008] [error] [client 77.23.128.211] PHP Warning: Wrong parameter count for array_push() in D:\\web\\apache\\main\\websitebaker\\wb\\modules\\imageflow\\modify.php on line 138, referer: http://secure77.ath.cx/websitebaker/wb/admin/pages/add.php
[Wed Nov 12 18:25:54 2008] [error] [client 77.23.128.211] PHP Warning: Wrong parameter count for array_push() in D:\\web\\apache\\main\\websitebaker\\wb\\modules\\imageflow\\modify.php on line 138, referer: http://secure77.ath.cx/websitebaker/wb/modules/imageflow/save.php
[Wed Nov 12 18:26:01 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 1 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50
[Wed Nov 12 18:26:01 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 2 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50
[Wed Nov 12 18:26:01 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 3 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50
[Wed Nov 12 18:26:01 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 4 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50
[Wed Nov 12 18:26:03 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 1 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/
[Wed Nov 12 18:26:03 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 2 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/
[Wed Nov 12 18:26:03 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 3 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/
[Wed Nov 12 18:26:03 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 4 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/
[Wed Nov 12 18:26:03 2008] [error] [client 77.23.128.211] PHP Parse error: syntax error, unexpected $end in D:\\web\\apache\\main\\websitebaker\\wb\\modules\\imageflow\\view.php on line 185, referer: http://secure77.ath.cx/websitebaker/wb/
[Wed Nov 12 18:26:22 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 1 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/test.php
[Wed Nov 12 18:26:22 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 2 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/test.php
[Wed Nov 12 18:26:22 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 3 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/test.php
[Wed Nov 12 18:26:22 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 4 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/test.php
[Wed Nov 12 18:26:24 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 1 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/kontakt.php
[Wed Nov 12 18:26:24 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 2 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/kontakt.php
[Wed Nov 12 18:26:24 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 3 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/kontakt.php
[Wed Nov 12 18:26:24 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 4 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/kontakt.php
[Wed Nov 12 18:26:25 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 2 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/bilder.php
[Wed Nov 12 18:26:25 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 3 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/bilder.php
[Wed Nov 12 18:26:25 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 4 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/bilder.php
[Wed Nov 12 18:28:14 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 2 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/bilder/3d-bilder.php
[Wed Nov 12 18:28:14 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 3 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/bilder/3d-bilder.php
[Wed Nov 12 18:28:14 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 4 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/bilder/3d-bilder.php
[Wed Nov 12 18:28:16 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 2 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/bilder/3d-bilder.php
[Wed Nov 12 18:28:16 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 3 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/bilder/3d-bilder.php
[Wed Nov 12 18:28:16 2008] [error] [client 77.23.128.211] PHP Notice: Undefined offset: 4 in D:\\web\\apache\\main\\websitebaker\\wb\\templates\\greenery\\menu_functions.php on line 50, referer: http://secure77.ath.cx/websitebaker/wb/pages/bilder/3d-bilder.php
[Wed Nov 12 18:28:16 2008] [error] [client 77.23.128.211] PHP Parse error: syntax error, unexpected $end in D:\\web\\apache\\main\\websitebaker\\wb\\modules\\imageflow\\view.php on line 185, referer: http://secure77.ath.cx/websitebaker/wb/pages/bilder/3d-bilder.php
@ ruebenwurzel
ok, hab es jetzt in die html_head.php reingetan.. hat aber leider auch nichts gebracht..
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
<?php page_title
();
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=
<?php
if(
defined
(
'DEFAULT_CHARSET'
)) { echo
DEFAULT_CHARSET
; } else { echo
'utf-8'
; }
?>
" />
<meta name="description" content="
<?php page_description
();
?>
" />
<meta name="keywords" content="
<?php page_keywords
();
?>
" />
<link href="
<?php
echo
TEMPLATE_DIR
;
?>
/screen.css" rel="stylesheet" type="text/css" media="screen" />
<?php
if(
function_exists
(
'register_frontend_modfiles'
)) {
register_frontend_modfiles
(
'css'
);
register_frontend_modfiles
(
'js'
);
}
?>
</head>
hier noch der error auszug aus der php.ini
hab das schonmal angemacht gehabt aber er hat mir weder errors auf der seite noch ein log file erstellt...
stimmen die einstellungen so??:
Code:
error_reporting = E_ALL|E_STRICT
; Print out errors (as a part of the output). For production web sites,
; you're strongly encouraged to turn this feature off, and use error logging
; instead (see below). Keeping display_errors enabled on a production web site
; may reveal security information to end users, such as file paths on your Web
; server, your database schema or other information.
;
; possible values for display_errors:
;
; Off - Do not display any errors
; stderr - Display errors to STDERR (affects only CGI/CLI binaries!)
; On or stdout - Display errors to STDOUT (default)
;
; To output errors to STDERR with CGI/CLI:
;display_errors = "stderr"
;
; Default
;
display_errors = On
; Even when display_errors is on, errors that occur during PHP's startup
; sequence are not displayed. It's strongly recommended to keep
; display_startup_errors off, except for when debugging.
display_startup_errors = On
; Log errors into a log file (server-specific log, stderr, or error_log (below))
; As stated above, you're strongly advised to use error logging in place of
; error displaying on production web sites.
log_errors = On
; Set maximum length of log_errors. In error_log information about the source is
; added. The default is 1024 and 0 allows to not apply any maximum length at all.
log_errors_max_len = 1024
; Do not log repeated messages. Repeated errors must occur in same file on same
; line until ignore_repeated_source is set true.
ignore_repeated_errors = Off
; Ignore source of message when ignoring repeated messages. When this setting
; is On you will not log errors with repeated messages from different files or
; source lines.
ignore_repeated_source = Off
; If this parameter is set to Off, then memory leaks will not be shown (on
; stdout or in the log). This has only effect in a debug compile, and if
; error reporting includes E_WARNING in the allowed list
report_memleaks = On
;report_zend_debug = 0
; Store the last error/warning message in $php_errormsg (boolean).
track_errors = Off
; Disable the inclusion of HTML tags in error messages.
; Note: Never use this feature for production boxes.
;html_errors = Off
; If html_errors is set On PHP produces clickable error messages that direct
; to a page describing the error or function causing the error in detail.
; You can download a copy of the PHP manual from http://www.php.net/docs.php
; and change docref_root to the base URL of your local copy including the
; leading '/'. You must also specify the file extension being used including
; the dot.
; Note: Never use this feature for production boxes.
;docref_root = "/phpmanual/"
;docref_ext = .html
; String to output before an error message.
;error_prepend_string = "<font color=ff0000>"
; String to output after an error message.
;error_append_string = "</font>"
; Log errors to specified file.
error_log = "c:\programme\php\error.txt"
Vielen Dank für die Hilfe... weiß langsam nicht mehr weiter..
edit:
... ah ok jetzt schreibt er mir die fehler auf die seite...
und schreibt mir auch ein error.log von php....
Code:
[12-Nov-2008 18:51:22] PHP Notice: Undefined offset: 1 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:22] PHP Notice: Undefined offset: 2 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:22] PHP Notice: Undefined offset: 3 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:22] PHP Notice: Undefined offset: 4 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:22] PHP Parse error: syntax error, unexpected $end in D:\web\apache\main\websitebaker\wb\modules\imageflow\view.php on line 185
[12-Nov-2008 18:51:28] PHP Notice: Undefined offset: 1 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:28] PHP Notice: Undefined offset: 2 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:28] PHP Notice: Undefined offset: 3 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:28] PHP Notice: Undefined offset: 4 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:30] PHP Notice: Undefined offset: 2 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:30] PHP Notice: Undefined offset: 3 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:30] PHP Notice: Undefined offset: 4 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:30] PHP Parse error: syntax error, unexpected $end in D:\web\apache\main\websitebaker\wb\modules\imageflow\view.php on line 185
[12-Nov-2008 18:51:31] PHP Notice: Undefined offset: 2 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:31] PHP Notice: Undefined offset: 3 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:31] PHP Notice: Undefined offset: 4 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:33] PHP Notice: Undefined offset: 2 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:33] PHP Notice: Undefined offset: 3 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:33] PHP Notice: Undefined offset: 4 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:33] PHP Parse error: syntax error, unexpected $end in D:\web\apache\main\websitebaker\wb\modules\imageflow\view.php on line 185
[12-Nov-2008 18:51:41] PHP Notice: Undefined offset: 2 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:41] PHP Notice: Undefined offset: 3 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
[12-Nov-2008 18:51:41] PHP Notice: Undefined offset: 4 in D:\web\apache\main\websitebaker\wb\templates\greenery\menu_functions.php on line 50
«
Last Edit: November 12, 2008, 06:48:43 PM by Kazantip
»
Logged
pcwacht
AddOn Development
Offline
Posts: 2856
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #8 on:
November 12, 2008, 10:40:34 PM »
Quote
syntax error, unexpected $end in D:\web\apache\main\websitebaker\wb\modules\imageflow\view.php on line 185
Here lies the error, wich could allso been seen n your page :
http://secure77.ath.cx/websitebaker/wb/pages/bilder/2d-bilder.php
advice
1 - set errorlevel in admin -> settings -> advanced_Settings to E_ALL^E_NOTICE or to none to avoid error messages wich can't hurt
like : Notice: Undefined offset: 4 in etc etc
2 - seems an error in imageflow module at line 185, unexpected variable $end
Don't know that module, can't help you there.
Have fun,
John
Logged
http://www.ictwacht.nl
= Dutch ICT info
http://www.pcwacht.nl
= My first
both still work in progress, since years.....
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #9 on:
November 12, 2008, 11:31:51 PM »
Quote from: pcwacht on November 12, 2008, 10:40:34 PM
Quote
syntax error, unexpected $end in D:\web\apache\main\websitebaker\wb\modules\imageflow\view.php on line 185
Here lies the error, wich could allso been seen n your page :
http://secure77.ath.cx/websitebaker/wb/pages/bilder/2d-bilder.php
This means you have modified the original view.php. The structure of the { } is broken.
Probably because you did not want the message to appear that tells you have no images yet.
The end of the view.php should look like this:
Code:
<?
/**
* No images found - in this case: a simple echo
*/
} else
echo $MOD_IMAGEFLOW['NO_IMAGES_FOUND'];
?>
Ruud
Logged
Professional WebsiteBaker Solutions
Kazantip
Offline
Posts: 9
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #10 on:
November 13, 2008, 01:29:21 PM »
First of all, thank you for the Support.
hm, I have deliberately turned on error Loggin, becouse my ImageFlow Gallery doesn´t work... and i dont know why..
after i get the reason for the problems i will set the display_error = OFF (in the php.ini)
I dont modified any php file from the modul.
The end of my view.php is the same which you post:
Code:
<?php
/*
WebsiteBaker Project <http://www.websitebaker.org/>
Copyright (C) 2004-2008, Ryan Djurovich
WebsiteBaker is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
WebsiteBaker is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with websitebaker; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
*
* @version 0.6.0
* @build 2
* @date 2008-07-24
* @author RuudE
* @state @dev
*
*
*/
// Must include code to stop this file being access directly
if(
defined
(
'WB_PATH'
) ==
false
) {
exit(
"Cannot access this file directly"
);
}
// check if module language file exists for the language set by the user (e.g. DE, EN)
if(!
file_exists
(
WB_PATH
.
'/modules/imageflow/languages/'
.
LANGUAGE
.
'.php'
)) {
// no module language file exists for the language set by the user, include default module language file EN.php
require_once(
WB_PATH
.
'/modules/imageflow/languages/EN.php'
);
} else {
// a module language file exists for the language defined by the user, load it
require_once(
WB_PATH
.
'/modules/imageflow/languages/'
.
LANGUAGE
.
'.php'
);
}
/**
* function for a mini-template-sytem
*/
function
replace_all
(
$aStr
=
""
, &
$aArray
) {
foreach(
$aArray
as
$k
=>
$v
)
$aStr
=
str_replace
(
"{{"
.
$k
.
"}}"
,
$v
,
$aStr
);
return
$aStr
;
}
/**
* Get settings out of the database
*/
$query_settings
=
$database
->
query
(
"SELECT * FROM "
.
TABLE_PREFIX
.
"mod_imageflow_settings WHERE section_id ="
.
$section_id
);
$settings
=
$query_settings
->
fetchRow
();
echo
"\n"
;
if (
$settings
[
'use_highslide'
] ==
1
) {
$popups
=
1
;
include_once (
"inc_imageflow_hs.php"
) ;
} elseif (
$settings
[
'use_lightbox'
] ==
1
) {
$popups
=
2
;
include_once (
"inc_imageflow_lb.php"
) ;
} else {
include_once (
"inc_imageflow.php"
) ;
}
$picdir
=
$settings
[
'picdir'
];
$imagepath
=
WB_PATH
.
MEDIA_DIRECTORY
.
$picdir
;
$imageurl
=
WB_URL
.
MEDIA_DIRECTORY
.
$picdir
;
$img_list
= array();
$img_dir
=
opendir
(
$imagepath
);
$pattern
=
".(jpg|jpeg|png|gif)$"
;
while (
false
!== (
$file
=
readdir
(
$img_dir
))) {
if (
false
===
ereg
(
"^refl_"
,
$file
) ) {
/**
* We are only adding images here
*/
if (
eregi
(
$pattern
,
$file
))
$img_list
[] =
$file
;
}
}
closedir
(
$img_dir
);
sort
(
$img_list
);
if (
count
(
$img_list
) >
0
) {
/**
* Gallery_info
*/
$gallery_info
=
0
;
if (
file_exists
(
$imagepath
.
"/gallery_info.txt"
) ) {
$gallery_info
= array();
$temp
=
file
(
$imagepath
.
"/gallery_info.txt"
);
foreach(
$temp
as
$image_info
) {
$details
=
explode
(
"|"
,
$image_info
);
$gallery_info
[
trim
(
$details
[
0
])] =
trim
(
str_replace
(
'"'
,
"'"
,
$details
[
1
]));
}
}
$params
=
"&height="
.
$settings
[
'reflection_height'
];
$params
.=
"&jpeg="
.
$settings
[
'thumbnail_quality'
];
$params
.=
"&bgc="
.
$settings
[
'reflection_fade'
];
$params
.=
"&newwidth="
.
$settings
[
'thumbnail_height'
];
$params
.=
"&cache="
.
$settings
[
'use_cache'
];
/**
* Style settings
*/
$divheight
=
$settings
[
'div_height'
];
$divwidth
=
$settings
[
'div_width'
];
$background
=
$settings
[
'back_color'
];
$gallery_title
= (
$settings
[
"gallery_title"
] !=
""
) ?
"<div id=\"imageflow_title\">"
.
stripslashes
(
$settings
[
"gallery_title"
]).
"</div>\n"
:
""
;
$gallery_description
= (
$settings
[
"gallery_description"
] !=
""
) ?
"<div id=\"imageflow_description\">"
.
stripslashes
(
$settings
[
"gallery_description"
]).
"</div>\n"
:
""
;
if (
$settings
[
'show_caption'
] !=
"1"
)
$caption
=
"style=\"visibility:hidden;\""
;
if (
$settings
[
'show_slider'
] !=
"1"
) {
$slider
=
"style=\"visibility:hidden;\""
;
$scrollbar
=
"style=\"border:0;\""
;
}
$style
=
"position:relative; overflow:visible; vertical-align:middle; max-width:99%; max-height:99%;"
;
if (
$background
)
$style
.=
"background:#"
.
$background
.
";"
;
if (
$divheight
)
$style
.=
"height:"
.
$divheight
.
"px;"
;
if (
$divwidth
)
$style
.=
"width:"
.
$divwidth
.
"px;"
;
/**
* Start frontend output
*/
?>
<div id="position" style="<? echo $style; ?>">
<? echo $gallery_title.$gallery_description; ?>
<div id="imageflow">
<div id="loading_bar">
<b><? echo $MOD_IMAGEFLOW['LOADING_IMAGES']; ?></b><br />
<img src="<? echo WB_URL; ?>/modules/imageflow/images/imgloading.gif" width="208" height="13" alt="
<?php
echo
$MOD_IMAGEFLOW
[
'LOADING_IMAGES'
];
?>
" />
</div>
<div id="images">
<?
$link_template = "<img src=\"{{link}}\" longdesc=\"{{longdesc}}\" alt=\"{{alt}}\">\n";
foreach ($img_list as $img) {
$name = substr($img, 0, strrpos($img, '.'));
if ( ($gallery_info != 0) && array_key_exists($name, $gallery_info)) {
$link_addition = ($settings['show_caption'] == 1) ? $gallery_info[$name] : "";
} else {
$link_addition = ($settings['show_caption'] == 1) ? $name : "";
}
$temp = Array (
'link' => WB_URL."/modules/imageflow/reflect.php?img=".urlencode($picdir.'/'.$img).$params ,
'longdesc' => "javascript:myLightbox.start('".$imageurl.'/'.urlencode($img)." | ".addslashes($link_addition)."');",
'alt' => $link_addition
);
if ($popups != 2) $temp['longdesc'] = $imageurl.'/'.urlencode($img);
echo replace_all($link_template, $temp);
}
?>
</div>
<div id="captions" <? echo $caption; ?>></div>
<div id="scrollbar" <? echo $scrollbar; ?>>
<div id="slider" <? echo $slider; ?>></div>
</div>
</div>
</div>
<?
/**
* No images found - in this case: a simple echo
*/
} else
echo $MOD_IMAGEFLOW['NO_IMAGES_FOUND'];
?>
So i dont know why the modul dont work...
I think i need any other php extensions, is this possible?
Deutsch:
Ich hab das Error Level ja extra so eingestellt das ich fehlermeldungen rausbekomm.. (siehe vorgehende Posts..)
wenn ich weiß woher der fehler kommt werde ich es auch wieder ausstellen...
Ich hab an dem Modul nichts geändert und das ende der view.php schaut genauso aus wie das von Ruud....
kann es nicht sein das mir einfach die php extensions fehlen und php den quelltext einfach nicht ausführen kann??
«
Last Edit: November 13, 2008, 01:38:02 PM by Kazantip
»
Logged
kweitzel
Forum administrator
Offline
Posts: 6975
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #11 on:
November 13, 2008, 05:30:35 PM »
Versuch mal die beiden TABs wegzunehmen, die in dem geposteten code drin sind.
gruß
Klaus
Logged
WebsiteBaker Org e.V. - for WebsiteBaker
Kazantip
Offline
Posts: 9
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #12 on:
November 13, 2008, 06:31:41 PM »
hi,
was ist ein TAB?? sorry für die frage aber ich kenn mich in php leider fast garnicht aus...
aber eigentlich sollte die view.php schon so stimmen (is ja die originale) und nen Arbeitskollegen hat sie auch sauber mit WebsiteBaker laufen... aber halt unter linux...
«
Last Edit: November 13, 2008, 06:56:31 PM by Kazantip
»
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #13 on:
November 13, 2008, 07:14:39 PM »
I think the problem lies with a little bad coding.. (I take the blame
)
Looking through your code, there are a few php start tags that are not what they supposed to be.
Try replacing all
<?
to
<?php
Allowing
<?
without the
php
is a configuration setting for php (php.ini), and might be switched off in your server.
What happens is that the last lines are not seen as php code, and therefore the php parsing fails.
Ruud
Logged
Professional WebsiteBaker Solutions
Kazantip
Offline
Posts: 9
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #14 on:
November 13, 2008, 07:37:06 PM »
ah ok, that sounds possible,
can you tell me which option i have to set in the php.ini file?
im sure that the modul is ok and i also think that any setting in my php.ini file is "incorrect"... or some php extensions are missing, do you read my first posting? there are a list of my php extensions which i loaded, do i need any others extensios or is this ok??
thanks
«
Last Edit: November 13, 2008, 07:40:30 PM by Kazantip
»
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #15 on:
November 13, 2008, 07:42:36 PM »
It is called "short_open_tag".
Look in your php.ini for this section: (remember to restart apache after changing)
Quote
; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
; NOTE: Using short tags should be avoided when developing applications or
; libraries that are meant for redistribution, or deployment on PHP
; servers which are not under your control, because short tags may not
; be supported on the target server. For portable, redistributable code,
; be sure not to use short tags.
short_open_tag = On
As you can read in the comments, the developer should not use short tags.
At that moment there is no problem.
A code cleanup somewhere around v0.4 accidently replaced all the <?php tags.
Ruud
edit: Only GD2 is used in this specific module. So it should work.
«
Last Edit: November 13, 2008, 07:44:19 PM by Ruud
»
Logged
Professional WebsiteBaker Solutions
Kazantip
Offline
Posts: 9
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #16 on:
November 13, 2008, 07:46:48 PM »
oh yes,
i found it at the momend you post by self
i set the short_open_tag = On
restart my apache and see..
http://secure77.ath.cx/websitebaker/wb/pages/bilder/2d-bilder.php
one problem is gone
the gallary works...
but why i get the others php errors, any idea?
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #17 on:
November 13, 2008, 07:51:00 PM »
They are not errors, they are notices.
It means: "I know what to do, but why didn't you tell me".
If you set your error reporting (advanced settings) to E_ALL^E_NOTICE you still will see all errors/warnings but not the notice messages.
On production servers switch to E_NONE. (you don't want to show errors to customers)
Ruud
Logged
Professional WebsiteBaker Solutions
Kazantip
Offline
Posts: 9
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #18 on:
November 13, 2008, 07:58:19 PM »
ah ok,
that means when i fill the gallary fields with values, the notice must be gone.
thank you for your support, you help very very much!!!
i searched a long time in the internet but dont found any reason for my problem...
but now is gonnnnee
Logged
Ruud
WebsiteBaker Org e.V.
Offline
Posts: 2295
Re: Welche PHP extensions für WebsiteBaker 2.7 und Gallerie Module
«
Reply #19 on:
November 13, 2008, 08:09:12 PM »
Logged
Professional WebsiteBaker Solutions
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...