PDA

View Full Version : PHP Error in 4.2.3 vB CMS Articles


Cody.9791
04-11-2016, 10:14 PM
I'm getting the following error when I'm trying to create Articles on my vBulletin 4.2.3 website with the vB CMS.

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

PHP Warning: Creating default object from empty value in ...vbcms\content\article.php on line 1250

I'm hosting with GoDaddy and my PHP Version is 5.4.

Does anybody know how I could fix this?

Lynne
04-11-2016, 11:54 PM
And is anything in your error_logs (if you don't know where they are, ask your host)? And what happened on your site just prior to this error starting?

Cody.9791
04-12-2016, 12:26 AM
And is anything in your error_logs (if you don't know where they are, ask your host)? And what happened on your site just prior to this error starting?

My hosting said there wasn't anything showing in the error logs. This error has been there since the site was created. I'm just now getting around to setting up the articles. I put them on the back burner since I knew there was an error, but it's time to get it fixed. When I contacted hosting, they really didn't help with this issue..

Dave
04-12-2016, 09:39 AM
PHP warnings usually don't cause internal server errors.

It's possible it's caused by a web-server misconfiguration or faulty .htaccess file?
Anything in the error logs of the web-server (so not the error logs of PHP).

Cody.9791
04-12-2016, 11:57 AM
PHP warnings usually don't cause internal server errors.

It's possible it's caused by a web-server misconfiguration or faulty .htaccess file?
Anything in the error logs of the web-server (so not the error logs of PHP).

The site is running on a Windows Server. As far as I'm aware, .htaccess files cannot be used on Windows Servers.

Lynne
04-12-2016, 03:43 PM
Can you turn off display errors on the server?

Paul M
04-12-2016, 07:00 PM
The site is running on a Windows Server. As far as I'm aware, .htaccess files cannot be used on Windows Servers.
Thats only true if you are using IIS, if you run apache it uses them just the same.

Cody.9791
04-12-2016, 08:29 PM
Can you turn off display errors on the server?

How would I go about this? I'm not too familiar with PHP.

--------------- Added 1460500250 at 1460500250 ---------------

Thats only true if you are using IIS, if you run apache it uses them just the same.

I am using IIS.

Cody.9791
04-14-2016, 02:11 AM
I commented out line 1250. I no longer get the error, just when I create articles, it doesn't redirect me back to the main article page automatically.

Budget101
04-14-2016, 10:09 AM
This is a recurring issue for many: http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/4003484-vbulletin-new-article

Here's the Link that they suggest to avoid the errors:
http://www.vbulletin.com/forum/forum/vbulletin-announcements/vbulletin-announcements_aa/4000121-vbulletin-4-2-2-full-has-been-released

Paul M
04-14-2016, 02:56 PM
Commenting out lines with errors is not a good idea, most likely it will cause something to fail.

Cody.9791
04-14-2016, 08:12 PM
This is a recurring issue for many: http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/4003484-vbulletin-new-article

Here's the Link that they suggest to avoid the errors:
http://www.vbulletin.com/forum/forum/vbulletin-announcements/vbulletin-announcements_aa/4000121-vbulletin-4-2-2-full-has-been-released

Won't that only work with vB 4.2.2?

--------------- Added 1460672059 at 1460672059 ---------------

Commenting out lines with errors is not a good idea, most likely it will cause something to fail.

I was just trying to get the error to go away. I was thinking that it could be due to being on a Windows Server rather than Linux.

Paul M
04-14-2016, 10:21 PM
I was just trying to get the error to go away. I was thinking that it could be due to being on a Windows Server rather than Linux.

Given that its a php error, thats highly unlikely.

The best way is always to figure out the cause, which may be a bug, and fix it.

I suggest you log the actual error, and how to replicate it, in the vb4 jira project.