You should be able to leverage CI's built in libraries (e.g. File Upload). If you are using the forms module, then you may want to look at a hook like post_process. The hook allows you to specify a callable function that gets executed in this case b…
What line number is it erring on in the MY_date_helper? Is it the is_date_db_format() function? If so, I'm curious how it's getting to that area of the code in MY_Model.php around line 1309 since the field types that are being checked are only date …
There are a couple field types that may be able to help with your module's form:
http://docs.getfuelcms.com/general/forms#file
http://docs.getfuelcms.com/general/forms#asset
There are predefined page routes that automatically get setup and slug is one of them. You were specifying a key that didn't have a route associated with it. These are the default keys and their associated routes (code lifted from Fuel_posts line 20…
A module's post pages are meant to be a way to dynamically create pages that use data from simple module and not necessarily a page created in the Pages module.
I think it has to do with the date format that is being used is d/m/Y instead of m/d/Y (U.S.). Did you modify the format of the datepicker? If so, the strtotime function doesn't recognize that format and is probably causing the error.
http://php.ne…
Instead of naming the field "image_upload", just name it "image". The field creates some hidden fields with the "_upload" suffix already. Additionally, I ran into a bug when saving on the Pages model that I fixed in the develop branch:
https://gith…
FYI there is a php 7.2 compatibility fix branch on the repo now which also includes CI 3.1.8:
https://github.com/daylightstudio/FUEL-CMS/tree/feature/php_7.2_compatability
For the upload_path to work, the 'encryption_key' needs to be set in the main CI config file (fuel/application/config/config.php). Also, the path needs to be absolute if you are using the upload_path parameter (folder does not). So you would want as…
The is_allowed is checked for an associated "view" to map to and it appears as though it's not finding one. If you look at the Fuel_posts::page_config() method, it appears to be returning NULL and isn't finding a key for "view" for the specified $th…
Has the fuel_mode in fuel/application/config/MY_fuel.php been set to auto (e.g. $config['fuel_mode'] = 'auto';)
Also, in your controller you have:
$CI->fuel->pagevars->retrieve('home');
Try replacing $CI with $this
The develop branch is currently using 3.1.7 (and will update to 3.1.8 when we can). Regarding 7.2 fixes, we've started on some but have a ways to go and at this point can give a firm date.
I've ran into a similar issue on Mac due to having multiple version of PHP installed. Make sure you use an absolute path to the PHP binary. So for example, if you are using MAMP, /Applications/MAMP/bin/php/php5.3.6/bin/php
I'm not quite sure I understand the question. Have you seen the documentation on the wysiwyg field type:
http://docs.getfuelcms.com/general/forms#wysiwyg
Did you set up a view to point it to in the configuration:
'pages' => array( 'base_uri' => 'articles', 'per_page' => 10, 'layout' => 'posts', 'list' => 'articles/list', 'post' => 'articles/detail', ),