I will look into it, thx.
Edit: i will replace and add some security mechanics with the wcms integrated once.
[in development] SimpleFeed Plugin for WonderCMS
Re: SimpleFeed Plugin for WonderCMS
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?
maybe its to much?
Should i add caching, too?
Re: SimpleFeed Plugin for WonderCMS
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
In the sf_safeWriteFile function:
Using PHP 8.1, if that helps. Let me know if you need any other info.
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);
Code: Select all
if (!@mkdir($dir, 0755, true))
$result = @file_put_contents($path, $content, LOCK_E