Author Topic: comments don't work / kommentare gehn nicht  (Read 46556 times)

0 Members and 1 Guest are viewing this topic.

Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
comments don't work / kommentare gehn nicht
« on: August 20, 2005, 03:38:53 PM »
i have a problem: after including 4images to my hp with switch (index.php?content=...) the comments doesn't work in the way, that they are not saved to the mysql-db.. what have i to do, that this is working?

also, ich habe ein problem, ich habe die 4images gallery in meine homepage eingebunden, also mit dem index.php?content=... und dann halt switch, und jetzt gehen die kommentare nicht mehr, d.h. das formular wird zwar angezeigt, aber wenn ich auf kommentar posten klick, wird der kommentar nicht gespeichert... weiß einer was ich da machen muss, dass des funktioniert?

mfg greven

Offline dargah

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #1 on: August 24, 2005, 11:17:26 PM »
hi all
i have same problem too , I installed 4images but comments are not working, when i put comment and press send it goes back to frist site's page
and comment wouldn't save at all
and also lightbox seems not working .just a page 'suche a file doesn't exsit' show up .
can any one help me too ??
i need it fix fast guys
thanks

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #2 on: August 25, 2005, 05:24:48 AM »
In global.php file,

find :

Quote

// error_reporting(E_ALL);


replace with :

Code: [Select]

error_reporting(E_ALL);


Then, redo these process again and tell me if you see any error messages at the top of your template. If so, please post the results here as it will be easier to determine the cause of your problem. ;)

Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #3 on: September 01, 2005, 02:32:51 PM »
also jetzt wird mir folgender fehler angezeigt:
Notice: A session had already been started - ignoring session_start() in /var/www/web230/html/4images/includes/sessions.php on line 84

Notice: Undefined index: action in /var/www/web230/html/details.php on line 242

was heißt das jetzt? was muss ich da ändern?


now it's showing this error:

Notice: A session had already been started - ignoring session_start() in /var/www/web230/html/4images/includes/sessions.php on line 84

Notice: Undefined index: action in /var/www/web230/html/details.php on line 242

what have i to do now?

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: comments don't work / kommentare gehn nicht
« Reply #4 on: September 01, 2005, 04:25:24 PM »
i had this problem too
in my case the comment_form.html whas empty

vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #5 on: September 01, 2005, 05:10:30 PM »
what do you mean with, that the comment_form.html is empty? i think if it's empty, than there isn't a commentform, or?

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: comments don't work / kommentare gehn nicht
« Reply #6 on: September 01, 2005, 05:48:44 PM »
sorry the comment_bit.html  file was just without code!
after i added the code it worked!
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #7 on: September 02, 2005, 02:08:56 PM »
my comment_bit has a code... what i can it also be? does anyone have a idea? what means the error which is written above?

was kann es sonst noch sein? also was bedeutet der oben genannte fehler?

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #8 on: September 02, 2005, 02:17:38 PM »
Quote

Notice: Undefined index: action in /var/www/web230/html/details.php on line 242


Sorry for the delay. Please post that block - between line 230 and line 250, from details.php file, and I will take a look at it.

Offline Xyu BAM

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #9 on: September 02, 2005, 04:00:53 PM »
a link to your gallery and phpinfo might help.
as of the error messages, if these are the only two that shows, that means your have a space or a new line after ?> in some file. perhaps in the file you've edited lately...(see faq)


Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #10 on: September 04, 2005, 03:43:47 PM »
this is the link to my gallery: http://www.greven-9er.de/index.php?content=4&sub=3 and what do you mean with php info?

and this is the code around line 242 in the details.php:
//-----------------------------------------------------
//--- Save Comment ------------------------------------
//-----------------------------------------------------
$error = 0;
if ($action == "postcomment" && isset($HTTP_POST_VARS[URL_ID])) {
  $id = intval($HTTP_POST_VARS[URL_ID]);
  $sql = "SELECT cat_id, image_allow_comments
          FROM ".IMAGES_TABLE."
          WHERE image_id = $id";
  $row = $site_db->query_firstrow($sql);

  if ($row['image_allow_comments'] == 0 || !check_permission("auth_postcomment", $row['cat_id']) || !$row) {
    $msg = $lang['comments_deactivated'];
  }

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #11 on: September 04, 2005, 03:54:53 PM »
And you do have this block :

Quote

define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');


At the top of your file right ? (especially the bolded statement).

Since :

Quote

Notice: Undefined index: action in /var/www/web230/html/details.php on line 242


Offline Xyu BAM

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #12 on: September 04, 2005, 05:22:06 PM »
is your gallery integrated with something? cause the urls are looks different then in default 4images.
perhaps that's the cause of the problem.

Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #13 on: September 05, 2005, 01:11:46 AM »
i think the block is right, the root_path looks a little bit differnet but else i think it's the same:

define('GET_CACHES', 1);
define('ROOT_PATH', './4images/');
include(ROOT_PATH.'global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/page_header.php');

and the gallery is not really integrated into something instead of my page like i've written above, and i could be thats the cause of the error, but i thought i've everything changed what i've have to change...
the only thing i'm not sure is the action of the comment_form, it's index.php?content=4&sub=6 what's normaly the link to the details.php...

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #14 on: September 05, 2005, 01:17:09 AM »
Change :

Quote

define('ROOT_PATH', './4images/');


to :

Code: [Select]

define('ROOT_PATH', './');