[in development] SimpleFeed Plugin for WonderCMS

k0r37k1
Posts: 9
Joined: Mon Apr 14, 2025 9:55 pm

Re: SimpleFeed Plugin for WonderCMS

Post by k0r37k1 »

I will look into it, thx.

Edit: i will replace and add some security mechanics with the wcms integrated once.

k0r37k1
Posts: 9
Joined: Mon Apr 14, 2025 9:55 pm

Re: SimpleFeed Plugin for WonderCMS

Post by k0r37k1 »

Ok, i added some wcms mechanics and new features to simplefeed for better integration into the system of wcms. ^^

maybe its to much?

Should i add caching, too?

User avatar
wiz
Admin
Posts: 814
Joined: Sat Oct 30, 2010 12:23 am

Re: SimpleFeed Plugin for WonderCMS

Post by wiz »

Hi k0r37k1.

Looking at the code - looks great and I don't see any issues. Cheers for giving WonderCMS a go and trying to improve our plugins with new additions.

After some debugging, I noticed 2 things that are causing a bit of an issue when trying to install the plugin.

1. When trying to install the plugin through Settings - Plugins - scroll to bottom - add custom module. There's an error:
- Module not added - the wcms-modules.json file does not contain all the required information.
- Here is a working example of how this plugin should look like: https://github.com/robiso/simple-blog/b ... dules.json

2. When trying to directly install it to my plugin folder according to the readme:
- instructions provided in read me: Create a directory called `simplefeed` in your WonderCMS plugins directory. Upload all the plugin files to the `simplefeed` directory
- my WonderCMS installation gets a white screen without any errors.

I tried removing all the suppressed error handling in your functions.php file (described below), just to see if I can get any error logs, however I could not successfully make it work or make it give out any specific logs.

In the sf_safeReadFile

Code: Select all

function: $content = @file_get_contents($path); 
In the sf_safeWriteFile function:

Code: Select all

 if (!@mkdir($dir, 0755, true))
 $result = @file_put_contents($path, $content, LOCK_E
Using PHP 8.1, if that helps. Let me know if you need any other info.

Post Reply