• I’m hoping to use my wordpress blog (consolidatedblog.com) as the news section in consolidatedskateboard.com

    the website is set up in PHP, but I’m pretty sure I can hardcode in where the current news is, but is there an embed RSS feed, or any part of the code (like recent posts) that can be embedded in the website so I don’t have to update the news and the blog (which is twice as much work)?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter confusionmagazine

    (@confusionmagazine)

    Thanks stvwlf.
    I spent a few hours on this and I made a lot of progress.

    https://consolidatedskateboard.com/indexblog.php

    I can’t get the Cache thing fixed though.
    I changed the permissions through the ftp to 777 READ WRITE EXECUTE.

    the cache file is in the inc directory, which is in the same directory as the rest of the main files in the site. that should be working right?

    But I get this error:

    Warning: ./cache/333f4035899cd050830bdfafd87f9b1d.spc is not writeable in /var/www/vhosts/consolidatedskateboard.com/httpdocs/inc/simplepie.php on line 1779

    Any idea??
    thanks.

    To save time I suggest you contact your webhost, explain what you are trying to do, what you have done, and the error message you are getting, to see if there is anything about the way your server is configured that might be causing the issue.

    Thread Starter confusionmagazine

    (@confusionmagazine)

    I did and they responded with this:

    “I would start by putting the blog in a directory of its own like /blog. WordPress may be having an issue with your filename in the root. It is common with WordPress installations. Also, the simplepie.php file has a not writable instruction in the code.”

    However, my wordpress is on a different server completely. The only thing in the root directory is the /inc/ folder with the simplepie.php file and the cache file. The simplepie.pho is pointing to my RSS feed in the code.

    Is there anything to what they are saying about the simplepie.php file not having writable instruction in the code???

    stvwlf

    (@stvwlf)

    The error message you are getting about not being able to write has nothing to do with your WordPress installation. That error is coming from the main website. So the host’s answer doesn’t apply here at all.

    1) the name of the cache folder is just cache correct, no period in front of it?

    2) another possibility was hinted at in the article I linked you to – the ownership of the cache folder that you created. If the website was created by someone else you may not have the necessary permission to write the cache folder in a way that the code running on the server can access. You can tell the webhost the issue is simplepie running on the website can not write its cache files ON THE WEBSITE in the cache folder. It has nothing to do with WordPress. You could be pulling in RSS from CNN and the same problem would occur because the problem is with the cache folder ON YOUR SERVER not the one the WordPress installation is on.

    From the article:
    A note about caching
    SimplePie provides a great caching mechanism so that feeds don’t have to be retrieved on every page load. This requires a writable directory on the server where the feeds can be stored. By default this location is ./cache, meaning a directory called “cache” in the same directory as the file calling simplepie.inc. Be sure your web server can write to this directory, either by changing the permissions, ownership, or some other means, as appropriate for your setup
    If changing the permissions to 777 didn’t do it, write the host again and explain this to them.

    Thread Starter confusionmagazine

    (@confusionmagazine)

    I understand. I write your article thoroughly. That is what I told the webhost, and they responded to what I previously wrote. I believe you, I just don’t know how to fix the problem. I didn’t create the website, they made it in a content management PHP program. I am the current webmaster who makes changes on the navigation in the header php and i hack their code to make it so it’s not so much a CMS.

    I will relay the information back to them, but not sure if they can do anything. I already set the permissions to 777. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using an RSS Feed as a column in a website for news updates’ is closed to new replies.