Fatel error in Feed link

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
itislove
Registered User
Posts: 2
Joined: Sat Jul 24, 2021 4:04 pm

Fatel error in Feed link

Post by itislove »

Hello,
I recently installed latest version of PHPBB
It was working great
But suddenly without I change any thing I am getting this error:

by visiting this link:
https://sudanila.com/app.php/feed

Fatal error: Cannot declare class phpbb\class_loader, because the name is already in use in /phpbb/class_loader.php on line 27
Any idea how to fix it?

Update:
The fatel error was fixed automatically without I change anything
Last edited by itislove on Thu Jul 29, 2021 6:02 pm, edited 2 times in total.
itislove
Registered User
Posts: 2
Joined: Sat Jul 24, 2021 4:04 pm

Google Search Console feed error

Post by itislove »

Hello,
I installed phpBB latest version 3.3.4
I submitted the ATOM feed link to site map
But I am getting error because the date format is wrong
How to fix it?

Line 8
Parent tag: feed
Tag: updated


I think that this is the code that cause error, specially the date format:

Code: Select all

$item_row = array(
				'author'		=> ($feed->get('creator') !== null) ? $row[$feed->get('creator')] : '',
				'published'		=> ($published > 0) ? $this->feed_helper->format_date($published) : '',
				'updated'		=> ($updated > 0) ? $this->feed_helper->format_date($updated) : '',
				'link'			=> '',
				'title'			=> censor_text($title),
				'category'		=> ($this->config['feed_item_statistics'] && !empty($row['forum_id'])) ? $board_url . '/viewforum.' . $this->php_ext . '?f=' . $row['forum_id'] : '',
				'category_name'	=> ($this->config['feed_item_statistics'] && isset($row['forum_name'])) ? $row['forum_name'] : '',
				'description'	=> censor_text($this->feed_helper->generate_content($row[$feed->get('text')], $row[$feed->get('bbcode_uid')], $row[$feed->get('bitfield')], $options, $row['forum_id'], ($display_attachments ? $feed->get_attachments($row['post_id']) : array()))),
				'statistics'	=> '',
			);

			// Adjust items, fill link, etc.
			$feed->adjust_item($item_row, $row);

			$item_vars[] = $item_row;

			$feed_updated_time = max($feed_updated_time, $published, $updated);
		}

		// If we do not have any items at all, sending the current time is better than sending no time.
		if (!$feed_updated_time)
		{
			$feed_updated_time = time();
		}

		$feed->close();


Update:
I was able to fix it by changing the line 103 in the following file:
phpbb/feed/helper.php

I changed the line to:
return gmdate("Y-m-d\TH:i:s+00:00", $time + $zone_offset) ;
and its fixed
Post Reply

Return to “[3.3.x] Support Forum”