WebSite X5Help Center

 
Ian C.
Ian C.
User

Comments & Ratings object returning a 500 Internal Server Error  en

Autore: Ian C.
Visite 1022, Followers 1, Condiviso 0  

I think I am missing something.

I have a site using the Comments and Ratings Comment Management widgit.

It works fine on the WebsiteX5.me server but returns a 500 Internal Serbver Error There is a problem with the resource you are looking for, and it cannot be displayed, when uploaded to my own domain server.

Any ideas? is there a resource used on websitex5.me that is not on my server.

Many thanks,

Ian

Postato il
14 RISPOSTE - 1 CORRETTO
Axel  
Axel  
User

Hello Ian,

If you are using the comments & rating object with a local directory, you need to create this one manually on the webserver (was like this long time ago). Maybe now WSX5 will create the directory.tongue-out

Enjoy!
Axel

Leggi di più
Postato il da Axel  
Ian C.
Ian C.
User
Autore

Hi Axel

Thank you for getting in touch so quicly.

I did set up parameters within WSX5-Evo (see 1.jpg) and when I go onto Admin it says that 'Ratings' folder is indeed set to 'Write' (see 2.jpg)

Here is the crazy thing, if the Object View Mode is set to 2 - Show Comments after Admin approval and I create a review, when I click send I get the 500 Server Error, if I go into Admin and manually accept the review, it will appear on the webpage as expected. (see 3.jpg)

If I go into the Object and change View Mode to 1 - Show inserted comment immediately and I create a review, it still produces the the review, but when I click the back button it shows it on the page.

What I am now wondering, is the issue to do with how my server deals with emails?

The site also has a Contact Form Object on another page and it is not sending it's data, the Admin page shows 'Could not instantiate mail function. (see bottom of 4.jpg)

I have been sending test messages with 'Test + time'

What is strange is that the Admin page form works, the one you see on th Admin page in 4.jpg, I received, (see 5.jpg) So clearly the PHP Mailer script is working within the Admin portol, but not within the site.

Your thoughts, please.

Thanks,

Ian

Axel, just realised there is a limitation on images, I have combined into one and labled, thanks.

Leggi di più
Postato il da Ian C.
Axel  
Axel  
User

Try to check PHP error logs to your provider. May be there is some infos.

Leggi di più
Postato il da Axel  
Ian C.
Ian C.
User
Autore

Thanks Axel,

I think I might be making headway.  Iwent back over my paramiters as you suggested and found I had used my own email address rather than the site email, changet it and the Contact Form now works and the Comments and Ratings Object now sends the info to me as an email and does indeed not update the page, but still produces a 500 error, but this time says "There is a problem with the resource you are looking for, and it cannot be displayed."

I am strugging with your other suggestion of the PHP logs. My provider Fasthosts suggests it should be in a root folder called logfiles, where as WSX5 uses Logs, I am not seeing the error in either of these locations, any suggestions.

Leggi di più
Postato il da Ian C.
Ian C.
Ian C.
User
Autore

Axel, that should read "it does update the review page"

Leggi di più
Postato il da Ian C.
Axel  
Axel  
User

Hello IAn,

No more idea

Sorry. but wait for an Incomedia support !

Enjoy!
Axel

Leggi di più
Postato il da Axel  
Incomedia
Stefano G.
Incomedia

Good afternoon Ian

As indicated by Axel, error 500 is an error that actually leaves more specific details in the Error Log of your webserver.

Unfortunately, I cannot see that directly, so you need to contact your hosting provider and ask them to let you know exactly what error has generated this Error 500 and report it to me. I might be able to help further with this piece of information

Please request this to your hosting provider and keep em posted here

Thank you

Stefano

Leggi di più
Postato il da Stefano G.
Ian C.
Ian C.
User
Autore

Hi Stefano,

Just got thiss back from my hoster.

PHP Notice:  Undefined index: id in \\HP3-WINC2-SMB1.HOSTINGP3.LOCAL\DOMAINSX\793\1781793\user\htdocs\res\x5engine.php on line 7013

Does that make sense to you.

I'm wondering if my ian-c.websitex5.me site has something different from my Fasthosts windows based domain, as it works fine there.

Regards,

Ian

Leggi di più
Postato il da Ian C.
Incomedia
Stefano G.
Incomedia

Good afternoon Ian

I'm afraid that this is not it.

This error does not represent an Error 500. Can I please ask you to contact your hosting support again and ask them about this error specifically? They should be able to provide this information to you.

The fact that the website works just fine on our hosting space leads me to believe that some configuration error in the server might be the reason, but I would need the hosting's confirmation to proceed this way

Please keep me posted here with the information I asked for

Thank you

Stefano

Leggi di più
Postato il da Stefano G.
Ian C.
Ian C.
User
Autore

Hi Stephano,

Aplogies for the confusion. When responding to Axel, i clicked the green tick and I thought I had closed this one so, hense the reason why I opened the second one as I was not sure if an Incomedia member would still pick it up.

Anyway, your suggestion to delete all and re-establish just from WSX5 Export has not resolved the issue.

I removed all the files from the /htdocs destination folder and removed all the files from the, I assume Root, the one down from /htdocs, with the exception of their logfiles and private, which it would not allow me to remove.

Obviously the new Export did not have any Comments and Ratings Object records, so I created a new, first one and still get the same error. If i click back on the browser, the record is there, but still the same.

I will get back onto Fasthosts to see if they can help further.

If there is anything else you can think of, because when I look at my ian-c.websitex5.me, the root folder seems to be packed with other content, such as:-

.htpasswd

awstats

logs

public_ftp

public_html (where the site files are stored)

private_html

Could the hold the key?

As soon as I get a response from Fasthostes, I'll update you here.

Thanks for the support thus far.

Ian

Leggi di più
Postato il da Ian C.
Ian C.
Ian C.
User
Autore

Hi Stefano,

I Feel we are in a "he said, she said" circular, with me in the middle.

I spoke with Fasthosts again and again, their web.config file is still returning the same error:-

'PHP Notice:  Undefined index: id in \\HP3-WINC2-SMB1.HOSTINGP3.LOCAL\DOMAINSX\793\1781793\user\htdocs\res\x5engine.php on line 7013'

I appreciate your position that it works on the development server.

Can I ask what platform websitex5.me operates on, and is there a server side script that x5engine.php communicates with that is not on the Fasthosts Windows based server.

Regards,

Ian

Leggi di più
Postato il da Ian C.
Incomedia
Stefano G.
Incomedia

Hello Ian

All of the folders you listed above are correct and are generated by the host itself. In general, you will always only work with public_html

In order to answer your question, I wouldn't define our hosting space as "development server". Our servers are configured the same way as most standard Linux hosting currently available online which special care on peculiar options that might sometimes cause trouble on other niche hostings. 

The files uploaded online will interact only with other items on the same web hosting space, so it shouldn't be a problem. Even though your hosting provider currently runs Windows instead of Linux, that shouldn't be a problem. However, should it be free of charge, I would recommend switching to Linux anyway which is the most stable and common type of server available

Unfortunately, the error you posted cannot be the reason for the error. Error 500 is an error that gets generated by PHP Fatal errors and not by PHP Notices, so I am sure that your hosting support is missing something there for which I am unfortunately unable to help

I would recommend proceeding as indicated here now. Should there be any news on this from Fasthosts, please keep me posted here

Thank you

Stefano

Leggi di più
Postato il da Stefano G.
Ian C.
Ian C.
User
Autore

Hi Stefano,

Thanks for the update.

I really don't want to be bogged down by nomenclature, ‘development’; 'sandbox' whatever are just names to define a space used to test and develop a concept and are unlikely to be the final hosting space, agreed?

I’m not sure what you mean by ‘niche hosting’ can you explain that.

The offering I use from Fasthosts is ‘Ignite’, it is a paid for service for which I pay £60 + Vat, £72:00 a year. https://www.fasthosts.co.uk/web-hosting They have a 4* TrustPilot rating, which of course means little these days.

As you will see it is quite a comprehensive hosting option, they have around a half million customers, hosting millions of websites.

I personally hosted up to six with them, mostly Moodle developments for PhD. Researchers, until my failing health resulted in me cutting back to just this one, a ‘vanity’ project that I created originally as a College End of Year Project for a History Group of elderly residents of Pollokshaws, an area within the City of Glasgow.

Anyway, that aside, I have forwarded your comment that what I posted can’t be a reason for the error to Fasthosts and await their response.

They might indeed suggest we change to a Linux offering, I don’t know, but will keep you informed.

Remaining with kind regards,

Ian

Leggi di più
Postato il da Ian C.
Ian C.
Ian C.
User
Autore

Hi Stefano,

Overnight Fasthosts migrated my site to a Linux server and the issue has indeed been resloved, the Guestbook now works.

I can confirm that their backup protocol does seem to be onto the oposite from what ever the current server is, so my backup was on a linux server, so it didn't take long for them to resolve.

It is a pitty they hadn't realised that was the issue earlier.

Thanks for your support in this matter.

Kind regards,

Ian

Leggi di più
Postato il da Ian C.