Nucleus Support Forum Index

Find on the forum:
any terms  all terms  Advanced Search

RSS 2.0
Browse posts: Unanswered | Mark all read

« »
Loading Nucleus FAQ ticker...
Post new topic Reply to topic
Author Message
fransonline
Nucleus Newbie


Joined: 06 Jan 2008
Posts: 10

Post Posted: Sun May 15, 2011 6:20 pm   Post subject: Adding comment causes http 500 error
Reply with quote

I installed the latest version of Nucleus.
When adding a comment, I get a http 500 error in different tested browsers (IE, Firefox..)

Can't track this error down.
Hopefully you can help me where to start...
Thanks!

Back to top

View user's profile Send private message
Edelpils
Nucleus Disciple


Joined: 23 May 2003
Posts: 100
Location: Dordrecht , NL

Post Posted: Sun May 15, 2011 6:35 pm   Post subject:
Reply with quote

Do you have access to your error logs from the webserver?
_________________
"Impossible" is just another word for "I haven't found the solution yet" | Earthquake Monitor plugin | Mobile detect pluggin

Back to top

View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
fransonline
Nucleus Newbie


Joined: 06 Jan 2008
Posts: 10

Post Posted: Sun May 15, 2011 7:58 pm   Post subject:
Reply with quote

Yes I have my own server and have access to web log:
Code:
x.x.x.x nucleus.mysite.nl - [15/May/2011:19:06:01 +0200] "POST /index.php HTTP/1.0" 500 0 "http://nucleus.mysite.nl/index.php?itemid=2" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; .NET4.0C)"


I removed IP and changed sitename in fake for security reason.


Last edited by fransonline on Sun May 15, 2011 9:16 pm; edited 1 time in total

Back to top

View user's profile Send private message
Edelpils
Nucleus Disciple


Joined: 23 May 2003
Posts: 100
Location: Dordrecht , NL

Post Posted: Sun May 15, 2011 8:28 pm   Post subject:
Reply with quote

Hi ,

The error log is usually written to a file (typically error_log on unix systems and error.log on Windows)

The access log (which you looked into) will not help you here. The error log is most likely more important to look into now.

You might also try to rename the .htaccess file just to be sure the error is not generated by that.

_________________
"Impossible" is just another word for "I haven't found the solution yet" | Earthquake Monitor plugin | Mobile detect pluggin

Back to top

View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
fransonline
Nucleus Newbie


Joined: 06 Jan 2008
Posts: 10

Post Posted: Mon May 16, 2011 9:20 am   Post subject:
Reply with quote

I think the redirection in the form to #nucleus_cf
Code:
<form method="post" action="#nucleus_cf">

is causing the trouble.

In an other topic I saw the tip to replace #nucleus_cf in <%self%> in the comment forms.
Even this does not work.

When I replace the tag in:
Code:
<form method="post" action="http://www.someothersite.nl">

the redirection works.
So a redirection to the tag #nucleus_cf in index.php goes wrong and causes a 500 error.

Hope this info helps.

Back to top

View user's profile Send private message
fransonline
Nucleus Newbie


Joined: 06 Jan 2008
Posts: 10

Post Posted: Thu May 19, 2011 1:04 pm   Post subject:
Reply with quote

Problem solved! Smile
At the end, an update of PHP solved the 500 error (just luck).

Any way, thanks for your help!

Back to top

View user's profile Send private message
jch
Nucleus Fan


Joined: 13 Jun 2005
Posts: 29
Location: Bowen Island, Canada

Post Posted: Fri May 04, 2012 4:41 am   Post subject:
Reply with quote

I've just upgraded to 3.64 (from 3.33) and am seeing this same problem: when I (logged in as Admin) try to post a comment, I get the 500 Internal Server Error and the browser address bar says http://mysite.on.web/index.php?itemid=1058#nucleus_cf (using FIrefox)

The error logs for my part of this server are filled with messages about deprecated operations. Only one that I thought might be pertinent, a Notice that an attempt to get property from a non-object looked like it was worth trying to get around. To that end, in ITEMACTIONS.php I changed
Code:
function setBlog(&$blog) {
      $this->blog =& $blog;
   }
to:

function setBlog($blog) {
      $this->blog = $blog;
        }
Which seems to have quieted that complaint. But it hasn't helped with the 500 Internal Server Error, and the URL in the address bar still shows http://mysite.on.web/index.php?itemid=1058#nucleus_cf . I've double double checked all the permissions and set them according to the guidance in this thread: http://forum.nucleuscms.org/viewtopic.php?t=19761 which is the only one I found that was explicit about all the files and directories. So I went with it. I hope it is correct.

The server I am running on has PHP Version 5.3.6, apache and is a linux box (centos). I do not have root access to the server, just to my area (in case anyone was about to suggest installing anything more than nucleus files :) The nucleus files are one level removed from my public html directory but I'd figured out how to get that all to work just fine several years ago by linking from the html directory to the index.php and config.php files in the second (and the xml-rss2.php). This is the first upgrade since 2005 that I have not been able to get working with this arrangement. (If this is the problem... I am not sure it is, just telling you what is 'odd' in case it is relevant in some way. I've seen other threads that discuss similar set ups with GoDaddy, so I am less convinced that my 'odd' directory arrangement is the problem, but I'm not on GoDaddy, so who knows?)

I am not using any of the .htaccess files that came with this release because I have no idea how to set them up or debug errors in them myself. But with them all renamed to no.htaccess and not having been on my filesystem before, I don't think they are the problem either. I suspected that something was not lining up between the config.php file and the settings for URLs in the Admin panel for the site & Blog settings for my blog there (which go directly to the db). Trying to figure out which paths from config.php file correspond to which URLs in the db is hurting my head. So is trying to figure out which of these (config or db) is used by the core and plugins after they start. So I have abandoned that line of inquiry. I still think there might be something mismatched or one setting overriding another due to a change from 3.33 to 3.64 but uncertain right now. (Maybe someone with a clear understanding of those changes can comment on this part of my ruminations and let me know if I should just give that part up! Thanks)

I can post an item just fine, but I cannot add a comment (no matter whether I'm logged in or not).

Plugins currently installed:
badbehavior,
archiveextras,
skinfiles,
rollingcopyright,
ordered,
views,
mostviewed,
latest comments,
akismet and akismetstatistics,
moderate,
commentcontrol,
ping

(mostviewed and ordered not really used anywhere yet fwiw)

Have tried unistalling all the plugins and it had no effect, so I put them back. Upgraded to the latest Badbehavior at the same time (it is doing a great job by all reports!). There were no problems reported by any of the scripts that I ran. I've set Debug on in globalfunctions.php but it doesn't seem to be telling me anything, since the internal server error is stealing its voice I think. (I do not know of any way to view logs that this setting may produce so relying on output to the browser pages. Is this correct?)

I've been trying to sort this out for a couple of days and would appreciate any suggestions you guys may have. I'm almost (but resisting) at the point of just wiping it all out and reinstalling from scratch (save for the db and layout and skin files).

What should I try next? (I am going to post a link to this in the Installation forum because I think it belongs there as well, but this thread was relevant to my problem so I decided to continue here first. Please remove either if my guesses are incorrect in this respect. Thanks.)

Back to top

View user's profile Send private message Visit poster's website
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Mon May 07, 2012 2:09 am   Post subject:
Reply with quote

I am interested in seeing all the error log entries that include PHP errors or warnings. Perhaps you could also email me a link to the actual site. My gmail.com username is ftruscot.

I should have time in the morning to check this out.

_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins

Back to top

View user's profile Send private message Visit poster's website
jch
Nucleus Fan


Joined: 13 Jun 2005
Posts: 29
Location: Bowen Island, Canada

Post Posted: Mon May 07, 2012 2:15 am   Post subject:
Reply with quote

Thanks for responding. Did you want me to reverse the change I made and attempt to add a comment as well? Or are you just interested in the warnings that come up even when this is not being done?

The change I made prevents the one error that looked like it was more than a warning. Let me know. Thanks again.

Back to top

View user's profile Send private message Visit poster's website
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Mon May 07, 2012 2:35 am   Post subject:
Reply with quote

You can leave it as.
_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins

Back to top

View user's profile Send private message Visit poster's website
Post new topic Reply to topic
Display posts from previous:   

Goto page 1, 2, 3  Next

Page 1 of 3

All times are GMT + 1 Hour

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group