PDA

View Full Version : Warning: Creating default object from empty value...


seventhaxis
11-17-2014, 10:46 AM
I have not seen this issue on my site until tonight. When viewing a specific category of news posts (e.g. Website Updates) I receive the following error at the top of the page:

Warning: Creating default object from empty value in [path]/packages/vbcms/controller/list.php on line 426

Context from the file in question:

425 $recordcount = $collection->getCount();
426 $contentview->contenttypeid = vB_Types::instance()->getContentTypeID("vBCms_Section");
427 $contentview->contentid = $contentview->item_id = $contentview->nodeid = $this->displaysectionid;
428 $contentview = new vB_View_Content('vbcms_content_list');
429 $contentview->package = 'vBCms';
430 $contentview->class = 'Section';
431 $contentview->result_type = $this->result_type;
432 $contentview->rawtitle = $this->title;
433 $contentview->title = $this->title;
434 $contentview->current_page = $current_page;

I took a look at the file but I don't really know anything about PHP. I don't see the error anywhere else on the website and any online searches really don't result in relevant fixes AFAIK. Any and all help is greatly appreciated! If you need any of the files just let me know and I'll throw them up on pastebin or something.

website: http://parallaxgaming.com

error message: http://parallaxgaming.com/list.php?r=category/3

kh99
11-17-2014, 01:09 PM
Did you make any changes to your site recently? You say you haven't seen it, is it possible that it's been there but you didn't notice it (I'm asking because I didn't notice at first because of the font color).

I see you have kind of an older version of vb. Do you know what version of php your server is running?

seventhaxis
11-17-2014, 07:18 PM
Yeah, it actually pushes down the top bar of information so I noticed it immediately when it appeared. The only change I made was changing over to use reCaptcha as verification and I added a custom .php page (/archives.php) which really has no call or connection to the categories sections.

I'm running 4.1.10 and I really don't feel comfortable upgrading due to the amount of work I've put into styling. If we upgrade, we're just going to move away to a different software rather than stick with vBulletin.

Lynne
11-17-2014, 08:49 PM
What version of PHP is on the site?

ozzy47
11-17-2014, 11:29 PM
Also I don't see how much styling you would need to change going from 4.1.10 to 4.2.2, why not set up a test site, and see how it looks?

seventhaxis
11-18-2014, 12:02 PM
PHP version 5.4.34

We tried updating to 4.2.2 in the past and it really messed up a lot of things. I thoroughly enjoy vBulletin honestly and the last thing I want to do is switch, but (I'm sure you can understand) the headaches and constant styling/coding errors we ran into just end up being too much for me to deal with. Just running into this issue itself gets a bit frustrating as it was working fine about three days ago. All I added was the archive.php page and change the method of Human Verification.

ozzy47
11-18-2014, 12:24 PM
Well that is the root of all your issues. You need to downgrade your PHP version, or update your vBulletin. The version you are running does not support the PHP version you are running.