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

0 Members and 1 Guest are viewing this topic.

Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #15 on: September 05, 2005, 01:24:21 AM »
then he can't find or open it:
Warning: main(): Unable to access ./global.php in /var/www/web230/html/4images/details.php on line 29
and so on...because of that i'va changed the root to ./4images/

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #16 on: September 05, 2005, 01:38:25 AM »
That is what I find strange actually ... in constants.php file, you can comment out the : SCRIPT_URL initial since you need to modify the define statement on each PHP root files.

Then,

replace :

Quote

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


with :

Code: [Select]

define ('ROOT_PATH', SCRIPT_URL);


Will it load correctly ?

Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #17 on: September 05, 2005, 01:55:44 AM »
no, now it's showing this:
Warning: main(SCRIPT_URLglobal.php): failed to open stream: No such file or directory in /var/www/web230/html/4images/details.php on line 29
have i only to write SCRIPT_URL without any ' or "?

TheOracle

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

Quote

define ('ROOT_PATH', SCRIPT_URL);


to :

Code: [Select]

define ('ROOT_PATH', 'SCRIPT_URL');


Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #19 on: September 05, 2005, 01:59:48 AM »
that doesn't change anything... :(

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #20 on: September 05, 2005, 02:43:58 AM »
Try :

Code: [Select]

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


Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #21 on: September 05, 2005, 03:31:54 AM »
that also doesn't work, i also tried SCRIPT_URL.'/' but what's the problem if i define the root with /4images/? i think the problem is rather at the action of form or in code from details.php, where the comment should be insert into the mysql...

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #22 on: September 05, 2005, 03:47:53 AM »
If you haven't modified details.php file, simply replace that file from the original package to see if this resolves the problem.

Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #23 on: September 05, 2005, 10:29:26 AM »
now i've replaced the details.php, and there is no more the error message but it also don't save the comment... could it be that the error is in the action attribute of the comment_form?
the action is the link to the details.php (index.php?content=4&sub=6)

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #24 on: September 05, 2005, 11:04:18 AM »
Ok, now - in your global.php file,

find :

Quote

//error_reporting(E_ALL);


with :

Code: [Select]

error_reporting(E_ALL);


Then, try your details page again. Does it say something on the top of the page ?

Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #25 on: September 05, 2005, 11:16:46 AM »
no, the only error is:
Notice: A session had already been started - ignoring session_start() in /var/www/web230/html/4images/includes/sessions.php on line 84
but i don't think thats the cause of the problem, because it's shown everywhere and not only in the details...

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #26 on: September 05, 2005, 11:42:51 AM »
Quote

and not only in the details...


Assuming you're using IE or Mozilla Firefox, clear up your temp files and cookies - close your browser - re-open - then try your site again.

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #27 on: September 05, 2005, 12:33:15 PM »
Update :

I remember seeing this error in the past. The problem is related on your 4images_sessions table. Empty it up (that's right - empty - not delete). Then, clear up all cookies and temp files. Reload your site and it should definitely work. ;)

Offline greven-il-vec

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: comments don't work / kommentare gehn nicht
« Reply #28 on: September 05, 2005, 04:48:32 PM »
hmm, i've done that but th problem, that comment is not saved is still available... any other idea what could be wrong?

TheOracle

  • Guest
Re: comments don't work / kommentare gehn nicht
« Reply #29 on: September 05, 2005, 04:56:48 PM »
No. I can only conclude that this is a server end issue. Which web hosting service are you related with ?