Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6788521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:29:45+00:00 2026-05-26T17:29:45+00:00

Deprecated: Assigning the return value of new by reference is deprecated in C:\Workspace\htdocs\feedBlurb\processing\simplepie.inc on

  • 0

Deprecated: Assigning the return value of new by reference is
deprecated in C:\Workspace\htdocs\feedBlurb\processing\simplepie.inc
on line 738

this is the error I get when I run the following SimplePie code on my server:

<?php
require_once("processing/simplepie.inc");
$feed = new SimplePie();
$feed->set_feed_url(array('http://feeds2.feedburner.com/CssTricks', 'http://smashingmagazine.com'));
$feed->enable_cache(true);
$feed->set_cache_location('core/cache');
$feed->set_cache_duration(1800);
$feed->init();
$feed->handle_content_type();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='UTF-8'>
<title>Feedblurb</title>
</head>
<body>
<div id="content">
<h1>Feedblurb</h1>
<?php if($feed->error): ?>
<span id='error'><?php echo $feed->error; ?></span>
<?php endif; ?>
<?php foreach($feed->get_items() as $item): ?>
<?php endforeach; ?>
</div>
</body>
</html>

It seems like all instances of SimplePie don’t seem to work on my server.. But I have a WordPress blog which is running SimplePie and that seems to work just fine. My development server is running the latest version of XAMPP. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:29:45+00:00Added an answer on May 26, 2026 at 5:29 pm

    You are using a version of SimplePie specifically designed to support legacy PHP4 applications, so your modern installation of XAMPP will cause it to cough up deprecation warnings.

    You should upgrade to a newer version of SimplePie which is actively maintained and designed for modern versions of PHP.

    If you can’t upgrade, you can either fix the error yourself, or configure your server to stop reporting deprecation warnings by changing error_level to E_ALL & ~E_DEPRECATED in your php.ini:

    ; error_reporting
    ;   Default Value: E_ALL & ~E_NOTICE
    ;   Development Value: E_ALL | E_STRICT
    ;   Production Value: E_ALL & ~E_DEPRECATED
    
    error_reporting = E_ALL & ~E_DEPRECATED
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assigning the return value of new by reference has been deprecated in PHP 5.3.
Getting these errors Deprecated: Assigning the return value of new by reference is deprecated...
My site has a deprecated error at this line: $obj =& new $class($table,$primkeyArr,$this); it
This piece of T-SQL is deprecated in 2005: BACKUP LOG [DB_NAME] WITH TRUNCATE_ONLY I
The string.replace() is deprecated on python 3.x. What is the new way of doing
Install xampp-win32-1.7.3.exe and put my php project in htdocs folder. this is working on
deprecated : bad example Is it feasible to get execution context (object reference) which
I am replacing PHP deprecated functions in my website. I have this code: (eregi(<[^>]*object.*\?[^>]*>,
this line of code is to create a thumb object, but there are warning
didAnimateFirstHalfOfRotationToInterfaceOrientation is deprecated in iOS 5.0. However I would like to use this method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.