<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Support — FUEL CMS Forum</title>
      <link>https://forum.getfuelcms.com/</link>
      <pubDate>Sun, 08 Mar 2026 09:22:49 +0000</pubDate>
          <description>Support — FUEL CMS Forum</description>
    <language>en</language>
    <atom:link href="https://forum.getfuelcms.com/categories/support/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Cannot create new Pages</title>
        <link>https://forum.getfuelcms.com/discussion/3664/cannot-create-new-pages</link>
        <pubDate>Tue, 02 Apr 2024 13:04:54 +0000</pubDate>
        <category>Support</category>
        <dc:creator>almostcompletely</dc:creator>
        <guid isPermaLink="false">3664@/discussions</guid>
        <description><![CDATA[<p>Hi</p>

<p>I seem to be having trouble creating new pages using the pages module. Clicking Pages-&gt;Create-&gt;Save (after adding content) fails to create a new page. Editing existing pages works fine. Creating new content using other modules (eg. Blocks) works fine. Creating a [fuel_pages] record manually using a remote database manager works fine (using the same credentials).</p>

<p>The site on my hosting works fine. The public hosted version of the site is broken. Directory permissions are correct, db user credentials are correct. Using "admin" Fuel account so super-user for everything. I've cut across all the files and overwritten the "broken" ones again. I've created a new database and cut the directories over again. Same problem.</p>

<p>Anyone come across this?</p>

<p>Any suggestions where to start debugging the code to track down where the save fails?</p>

<p>TIA.</p>
]]>
        </description>
    </item>
    <item>
        <title>How to update the core codeigniter version?</title>
        <link>https://forum.getfuelcms.com/discussion/3629/how-to-update-the-core-codeigniter-version</link>
        <pubDate>Thu, 18 Nov 2021 18:38:59 +0000</pubDate>
        <category>Support</category>
        <dc:creator>sr13579</dc:creator>
        <guid isPermaLink="false">3629@/discussions</guid>
        <description><![CDATA[<p>For more secure and tight feature I think we should look for upgrading the core of this CMS. What do you say?<br />
Is there a way to upgrade the core?</p>
]]>
        </description>
    </item>
    <item>
        <title>How to make CMS page as homepage?</title>
        <link>https://forum.getfuelcms.com/discussion/3530/how-to-make-cms-page-as-homepage</link>
        <pubDate>Sat, 20 Feb 2021 22:10:54 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3530@/discussions</guid>
        <description><![CDATA[<p>As in topic.<br />
I can't figure that out how to change that. <br />
I don't want to simply fill the 'home' page because this is a subpage of the menu and I want people to see that.<br />
-&gt; <a href="https://test4climbing.com" rel="nofollow">https://test4climbing.com</a></p>
]]>
        </description>
    </item>
    <item>
        <title>Overwrite Blog Module Configuration</title>
        <link>https://forum.getfuelcms.com/discussion/3513/overwrite-blog-module-configuration</link>
        <pubDate>Wed, 16 Dec 2020 22:50:46 +0000</pubDate>
        <category>Support</category>
        <dc:creator>edival</dc:creator>
        <guid isPermaLink="false">3513@/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>I'd like to change the default behaviour for comments. I'd like the option to leave comments turned on, but I'd like the comments to be turned off by default.</p>

<p>I can do this by changing the order of the yes/no in the following code, but I'd rather not do it right in the Blog module in case it's updated.</p>

<p>Please let me know your thoughts on the best way to accomplish this.</p>

<p><code>if (!isset($values['allow_comments']))&lt;br /&gt;
        {&lt;br /&gt;
            $fields['allow_comments']['value'] = ($CI-&gt;fuel-&gt;blog-&gt;config('allow_comments')) ? 'yes' : 'no';&lt;br /&gt;
        }</code></p>
]]>
        </description>
    </item>
    <item>
        <title>Errors in log file</title>
        <link>https://forum.getfuelcms.com/discussion/3502/errors-in-log-file</link>
        <pubDate>Fri, 20 Nov 2020 10:32:34 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3502@/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>I'm not sure if this question is for you guys.</p>

<p>I have a lot of errors in the PHP error log file such as<br />
<code>[Fri Nov 20 07:21:01 2020] [error] [client 95.91.236.243] request=&quot;GET /assets/images/assessments/boulder.png HTTP/1.1&quot; pid=139784005643584 uid=3932064 gid=3932064, referer: https://test4climbing.com/assessments/tests/submission/new</code><br />
<code>[Fri Nov 20 07:24:12 2020] [error] [client 95.91.236.243] request=&quot;POST /assessments/tests/submission/add HTTP/1.1&quot; pid=139784005640062 uid=3932064 gid=3932064, referer: https://test4climbing.com/assessments/tests/submission/new </code><br />
Many of them relates to images or pages that exist. I'm not sure if this is something to worry about, but I don't like errors.<br />
What should I do here?</p>
]]>
        </description>
    </item>
    <item>
        <title>Lang file from other advanced module</title>
        <link>https://forum.getfuelcms.com/discussion/3490/lang-file-from-other-advanced-module</link>
        <pubDate>Mon, 26 Oct 2020 12:08:45 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3490@/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I've got two advanced modules: "Blog" and "Assassments"<br />
How to get translations from Assassments module lang file inside Blog module views? <br />
Implementing <code>$this-&gt;load-&gt;module_language('assassments', 'assassments');</code> in Blog controller doesn't work</p>
]]>
        </description>
    </item>
    <item>
        <title>Remembering checkbox with a cookie using Forms Module</title>
        <link>https://forum.getfuelcms.com/discussion/3488/remembering-checkbox-with-a-cookie-using-forms-module</link>
        <pubDate>Sat, 17 Oct 2020 20:29:41 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3488@/discussions</guid>
        <description><![CDATA[<p>Hi guys.</p>

<p>I have a site where is a form with a single checkbox "I accept the Terms and Conditions of the site". After you check it and click submit you are redirected to the login page.</p>

<p>This is shown everytime I visit that page. This is annoying. I would like to remember this selection and redirect returning visitors directly to the login page.</p>

<p>I'm sure this should be done with a cookie, but can you suggest some implementation details how it should be done?<br />
Is it possible to do quickly within the Form module?</p>

<p>Or should I simply create the viewer file with relevant cookie code?</p>
]]>
        </description>
    </item>
    <item>
        <title>How to set the blog as home page</title>
        <link>https://forum.getfuelcms.com/discussion/3457/how-to-set-the-blog-as-home-page</link>
        <pubDate>Fri, 27 Mar 2020 20:37:53 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3457@/discussions</guid>
        <description><![CDATA[<p>I can't figure out how to set that.<br />
In CMS I have a page with location "home" and redirect works fine.<br />
So I have tried to set that as alias with alias value as "blog", but the web browser (after loading for a while) shows an error</p>

<pre><code>Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 262144 bytes) in /home/users/michael/public_html/mywebsite/fuel/codeigniter/database/DB_driver.php on line 1944

Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 262144 bytes) in /home/users/michael/public_html/mywebsite/fuel/codeigniter/core/Common.php on line 607
</code></pre>

<p>Have you guys any idea?</p>
]]>
        </description>
    </item>
    <item>
        <title>Page title</title>
        <link>https://forum.getfuelcms.com/discussion/3148/page-title</link>
        <pubDate>Sat, 18 May 2019 21:20:18 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3148@/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I have my advanced module and all of the pages have similar title problem. One my pages is a form to add a test and the page title looks like this:<br />
<code>&lt;!--__FUEL_MARKER__0--&gt;Add test</code>, but that should be just <code>Add test</code><br />
I can't find a way to change it.</p>

<p>In controller I define a title for the page:<br />
<code>fuel_set_var('page_title', 'Add test');</code><br />
and in the view file I echo this title:<br />
<code>echo '&lt;h1&gt;'.fuel_var('page_title').'&lt;/h1&gt;'</code></p>

<p>How should that be properly done?</p>
]]>
        </description>
    </item>
    <item>
        <title>Advice needed to put a user_id in the middle of URL</title>
        <link>https://forum.getfuelcms.com/discussion/3440/advice-needed-to-put-a-user-id-in-the-middle-of-url</link>
        <pubDate>Thu, 16 Jan 2020 15:41:43 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3440@/discussions</guid>
        <description><![CDATA[<p>Hi guys,</p>

<p>I've created an advanced module called "sportcenter" where users log their sport results.<br />
The _construct in the "sportcenter" controller checks if the user is logged in.<br />
If not - it redirects to the login page (Ion auth).<br />
If yes - it redirects to <code>domain.com/sportcenter/profile</code>. The "profile" is a simple module in "sportcenter" as it is a table in the DB.<br />
When a user wants to view the results goes to: <code>domain.com/sportcenter/results</code>. The "results" is the function in the "sportcenter" controller as it is a viewing of processed data from the DB entered by users.</p>

<p>Now I got an idea to create the sharing of the "results" to let everyone view it without need of registering.<br />
In my perfect world I would like the URL to looks like this: <code>domain.com/sportcenter/user_id/results</code>.</p>

<p>Of course I will move authenticating of the user to the needed functions, but how to manage this feature the best way?<br />
What would be the best way (also easy) for calling the "user_id" in between "sportcenter" and "results" to show the "results" page from the particular user (almost the same screen as logged in user)?</p>

<p>My idea is to make something like a middleware and use <code>function index($action_word)</code> for that.<br />
To check if the <code>index($action_word)</code> in the "sportcenter" controller might act as such middleware I tested below code and calling <code>domain.com/sportcenter/test</code> doesn't shows the "results" page</p>

<pre><code>    function index($action_word = NULL) {
        if ($action_word == 'test')
            $this-&gt;results();
        else
            redirect(SPORTCENTER_FOLDER.'/profile');
    }

    function results()
    ...
</code></pre>

<p>Would you be so kind and provide me any advice or tips?<br />
Proposed URL scheme is not actually a must. Having this sharing feature without tons of code is the goal. I'm open for all the possibilities.<br />
Maybe there is a lot easier way by doing <code>domain.com/sportcenter/results/unique_user_name</code> or <code>domain.com/sportcenter/results?share=unique_user_name</code>? But will such approach not collide with other functions in the controller?</p>
]]>
        </description>
    </item>
    <item>
        <title>I cannot change the home page</title>
        <link>https://forum.getfuelcms.com/discussion/3435/i-cannot-change-the-home-page</link>
        <pubDate>Wed, 15 Jan 2020 16:00:26 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3435@/discussions</guid>
        <description><![CDATA[<p>Hi guys,</p>

<p>I'm getting crazy a little bit, because I've checked almost every file in fuel folder, f.ex. application, configs, views, blocks, everywhere, etc, every single part in CMS and I can't find the way to change the homepage. (???) It took me few hours to find that and nothing!<br />
The system somehow redirects from the main domain domain.com to the domain.com/articles instead of doing what is set in "home" page in CMS. For a long time it was set to redirect to /articles in "home" page in CMS, but now changing the value "Redirect to" doesn't change anything.<br />
Funny thing is that the page title changes on the page /articles when I change it in the "home" page in CMS (!!!), but the content is shown from simple module "articles" I have implemented from your tutorial long time ago.</p>

<p>Please help! I'm out of energy and ideas how to solve it.</p>
]]>
        </description>
    </item>
    <item>
        <title>Inline creation not working -- clueless</title>
        <link>https://forum.getfuelcms.com/discussion/3341/inline-creation-not-working-clueless</link>
        <pubDate>Fri, 22 Nov 2019 21:01:31 +0000</pubDate>
        <category>Support</category>
        <dc:creator>EcotypeS</dc:creator>
        <guid isPermaLink="false">3341@/discussions</guid>
        <description><![CDATA[<p>I can create and  in admin, so the model itself seems to be OK</p>

<p>I can edit existing records inline -- the following works:<br />
&lt;?php if ($ok_to_edit) echo fuel_edit($item-&gt;id, 'Edit Highlight', 'landscaping');?&gt;</p>

<p>I cannot create new records inline  -- the following (called short form in the user guide) shows nothing, not even the +<br />
&lt;?php if ($ok_to_edit) echo fuel_edit ('create', 'landscaping'); ?&gt;<br />
And generates something unrelated to the module<br />
<span data-href="https://dev.fnps.org/fuel/pagevariables/inline_create/" data-rel="create" title="landscaping" data-module="pagevariables" data-published="1"><br />
This appears to be a documentation error</span></p>

<p>The following shows an edit box without the form -- The + does show and a "waiting to load" icon shows, but all that shows of the form are the close and save buttons <br />
&lt;?php if ($ok_to_edit) echo fuel_edit ('create', 'Add Highlight', 'landscaping'); ?&gt;<br />
It generates code that looks correct to me<br />
<span data-href="https://dev.fnps.org/fuel/landscaping/inline_create/" data-rel="create" title="Add Highlight" data-module="landscaping" data-published="1"></span></p>

<p>Any ideas?  Happening with all of my models - all were converted from 0.97</p>
]]>
        </description>
    </item>
    <item>
        <title>Dashboard not displayed</title>
        <link>https://forum.getfuelcms.com/discussion/3183/dashboard-not-displayed</link>
        <pubDate>Fri, 13 Sep 2019 15:32:30 +0000</pubDate>
        <category>Support</category>
        <dc:creator>devop</dc:creator>
        <guid isPermaLink="false">3183@/discussions</guid>
        <description><![CDATA[<p>Hi everyone,</p>

<p>i face to an issue when i try to visualize the dashboard, i get the loader image and no more, i can't visualize my dashboard. <br />
I followed installations steps by steps. All others sections work i create pages, blocks... <br />
It seems to be a problem with ajax call, because i saw one time an error 500 ajax. <br />
If someone can help me.</p>

<p>Thank you</p>

<p>fuel version : 1.4.4<br />
wamp : php version 7.2</p>
]]>
        </description>
    </item>
    <item>
        <title>Display Format in datetime Field</title>
        <link>https://forum.getfuelcms.com/discussion/3176/display-format-in-datetime-field</link>
        <pubDate>Mon, 26 Aug 2019 14:30:31 +0000</pubDate>
        <category>Support</category>
        <dc:creator>marcus_at_localhost</dc:creator>
        <guid isPermaLink="false">3176@/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>in my <em>Events_model</em> I need to display the weekday name next to the datepicker.</p>

<p>I kind of expected it will all happen magically if I set the <code>date_format</code>'D, d.m.Y', to get <code>Mon, 28.08.2019</code></p>

<pre><code>public function form_fields($values = array(), $related = array())
{

    $fields['start_date']['label']        =  'Datum von';
    $fields['start_date']['date_format']  =  'D, d.m.Y';

    $fields['end_date']['label']          =  'Datum bis';
    $fields['end_date']['date_format']    =  'D, d.m.Y';
}
</code></pre>

<p>It's shown correctly in the start_date field but not in the end_date field and saving the field makes problems as well.</p>

<p>Do I need to transform those fields myself, before saving?</p>

<p>I checked the values in <code>function on_before_clean($values)</code> where they appear in the D, d.m.Y format, but in <code>public function on_before_save($values)</code> <code>$values['start_date']</code> is <code>null</code>. So somehow, something gets lost in between, and I can't make any sense of it.</p>

<p>I appreciate any hint.</p>
]]>
        </description>
    </item>
    <item>
        <title>Adding class extending Base_module_record to model causing 500?</title>
        <link>https://forum.getfuelcms.com/discussion/3172/adding-class-extending-base-module-record-to-model-causing-500</link>
        <pubDate>Tue, 20 Aug 2019 01:31:05 +0000</pubDate>
        <category>Support</category>
        <dc:creator>bbaker</dc:creator>
        <guid isPermaLink="false">3172@/discussions</guid>
        <description><![CDATA[<p>I'm using a simple module. As soon as I add the following to my model, the page goes 500 on me. Logs say "Allowed memory size of 134217728 bytes exhausted (tried to allocate 122421248 bytes)"</p>

<p><code>class Schedule_model extends Base_module_record { }</code></p>
]]>
        </description>
    </item>
    <item>
        <title>How to get $this-&gt;example_model-&gt;saved() with "id"??</title>
        <link>https://forum.getfuelcms.com/discussion/3147/how-to-get-this-example-model-saved-with-id</link>
        <pubDate>Fri, 17 May 2019 06:29:07 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3147@/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I can't figure out how that object should be taken for further process.<br />
Let's assume that "id" in the "tests" table is auto-incremental.<br />
So I'm doing like this:</p>

<pre><code>//new object creation
$test_new = $this-&gt;tests_model-&gt;create( array('column1' =&gt; 'value1', 'column2' =&gt; 'value2') );

//saving new object to database
$this-&gt;tests_model-&gt;save($test_new);

// taking the saved object
$saved_test = $this-&gt;tests_model-&gt;saved();
</code></pre>

<p>This doesn't work for me because returned object doesn't contain the "id" value. How to get the last saved object in the database with "id"?<br />
Please help.</p>
]]>
        </description>
    </item>
    <item>
        <title>How to iterate "object" from $this-&gt;profiles_model-&gt;find_one()</title>
        <link>https://forum.getfuelcms.com/discussion/3144/how-to-iterate-object-from-this-profiles-model-find-one</link>
        <pubDate>Fri, 26 Apr 2019 22:10:48 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3144@/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I want to get the array from <code>$this-&gt;profiles_model-&gt;find_one()</code> to have any record from profiles_model to take keys for the form. When I use <code>foreach</code> with this it doesn't iterate. I have checked that with <code>gettype($any_record)</code> and the result is "object". I can easily echo this object like a string (prints that it is an array, but it is not) or echo its nodes with <code>echo $any_records-&gt;birth_date</code> what returns correct values. But I want to iterate its nodes.<br />
Even if I set the $return_method argument as "array" it doesn't return an array, but an "object" as above.<br />
How to iterate that?</p>
]]>
        </description>
    </item>
    <item>
        <title>Nested form fields render change</title>
        <link>https://forum.getfuelcms.com/discussion/3145/nested-form-fields-render-change</link>
        <pubDate>Fri, 03 May 2019 13:32:31 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3145@/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I have created 'nested' type field with two fields inside and both are rendered one under another - each nested field is rendered inside separate </p> tags.<br />
Is it possible to easily change that to render nested fields next to each other - inside separate  tag only?
]]>
        </description>
    </item>
    <item>
        <title>Foreign_keys field that can be null sometimes</title>
        <link>https://forum.getfuelcms.com/discussion/3142/foreign-keys-field-that-can-be-null-sometimes</link>
        <pubDate>Wed, 24 Apr 2019 10:48:27 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3142@/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I have a table with a field with foreign key, but it can be null sometimes or empty.<br />
When I edit a record in the CMS it is not possible to select "nothing" in this field.<br />
Can you advice me what to do to have such possibility to select null or empty for such field?<br />
In the model I have defined this field with $foreign_keys.</p>
]]>
        </description>
    </item>
    <item>
        <title>EDIT  |  VIEW  |  DELETE missing</title>
        <link>https://forum.getfuelcms.com/discussion/3140/edit-view-delete-missing</link>
        <pubDate>Mon, 15 Apr 2019 21:57:09 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3140@/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I have created advanced module "training center" and simple module "profiles" inside the advanced one.<br />
When I list the profiles in the CMS I can see the list, but rows are not clickable and there are missing EDIT  |  VIEW  |  DELETE buttons at the end of each row.<br />
Is there any particular configuration to make it function as it should?<br />
I have tried to find something on "blogs users" model and blogs configs but I cannot find anything relevant.<br />
Please help!</p>
]]>
        </description>
    </item>
    <item>
        <title>Sport results registration and viewer - Which way to go?</title>
        <link>https://forum.getfuelcms.com/discussion/3132/sport-results-registration-and-viewer-which-way-to-go</link>
        <pubDate>Wed, 03 Apr 2019 21:35:20 +0000</pubDate>
        <category>Support</category>
        <dc:creator>strzala</dc:creator>
        <guid isPermaLink="false">3132@/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I'm very new to CI and Fuel so I will probably ask some newbie questions.</p>

<p>I'm building the website with the public part and the part for logged-in users.<br />
I want to let users to register (+recaptcha) with few custom fields, log in, register their sport exercises results few times a year by filling a form (with conditional logic), view and edit all entered data (submissions and registered profile data) and monitor their sport progress with charts (like google charts). App should send an email to the user after some time of inactivity.<br />
Would be great I could view all the entered data within the Fuel CMS, but it is not a must.</p>

<p>I'm a little bit confused about possibilities of Fuel and need some advice which implementation way to go.</p>

<p>Should I create a simple module, advanced or CI separate app? Or maybe there is other possibility to choose?<br />
Should I implement the form with Form_builder or Form module?<br />
Would be great to register users within Fuel Users but is it a good idea?</p>

<p>I will be really appreciated for any tips and advises.</p>

<p>Best regards,<br />
Lukas</p>
]]>
        </description>
    </item>
    <item>
        <title>Blog module and the asset uploader</title>
        <link>https://forum.getfuelcms.com/discussion/3129/blog-module-and-the-asset-uploader</link>
        <pubDate>Tue, 26 Mar 2019 19:30:30 +0000</pubDate>
        <category>Support</category>
        <dc:creator>bulldog5046</dc:creator>
        <guid isPermaLink="false">3129@/discussions</guid>
        <description><![CDATA[<p>Hey,</p>

<p>I thought i had a general bug somewhere but after digging around for the best part of the afternoon i'm not sure it's me anymore. But also at a loss to solve it.</p>

<p>The problem;</p>

<p>When uploading images to a blog post, the asset uploader posts the image, but enters the filename only to be sorted with the post 'main','list' &amp; 'thumbnail' image names, which are all the same. The preview that loads seem to use the cache system to store the different resolution images.</p>

<p>Additionally, as far as i can see the 'create thumb' option, doesn't actually do anything?</p>

<p>Does anyone know why the blog module doesn't store the cache reference? or create a separate thumbnail image? And how to call the image/image path correctly? get_image(), get_image_path() &amp; get_thumbnail_image_path() are all essentially the same function.</p>
]]>
        </description>
    </item>
    <item>
        <title>Login to different page?</title>
        <link>https://forum.getfuelcms.com/discussion/3120/login-to-different-page</link>
        <pubDate>Thu, 14 Mar 2019 21:49:07 +0000</pubDate>
        <category>Support</category>
        <dc:creator>bbaker</dc:creator>
        <guid isPermaLink="false">3120@/discussions</guid>
        <description><![CDATA[<p>Hey y'all! Is it possible to login into the admin area of Fuel CMS, but the first page that you see be an advanced module index page instead of the dashboard?</p>
]]>
        </description>
    </item>
    <item>
        <title>$news_item-&gt;get_categories_linked() ends in error in libraries/Fuel_posts.php</title>
        <link>https://forum.getfuelcms.com/discussion/3072/news-item-get-categories-linked-ends-in-error-in-libraries-fuel-posts-php</link>
        <pubDate>Tue, 18 Dec 2018 11:49:25 +0000</pubDate>
        <category>Support</category>
        <dc:creator>marcus_at_localhost</dc:creator>
        <guid isPermaLink="false">3072@/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>I'm trying to understand the "Generated Post Pages" in Simple Modules and I went through all docs that deal with that topic, but I get stuck in this error:</p>

<p>The uri I call is something like this:</p>

<p><a href="https://domain.com/en/service/news/slug-headline" rel="nofollow">https://domain.com/en/service/news/slug-headline</a></p>

<p>/en =&gt; forced language string<br />
/service/news =&gt; Opt-in Controller =&gt; (/views/service/news.php)<br />
/slug-headline =&gt; news.slug DB entry</p>

<pre><code>10  1.1349      14197184    include( '...fuel\application\views\service\news.php' ) ..\Loader.php:396
11  1.1851      14319192    Base_post_item_model-&gt;get_categories_linked( ???, ??? ) ..\news.php:30
12  1.2001      14342000    Fuel_posts-&gt;url( 'category/my-category' )   ..\Base_posts_model.php:301
13  39.0921     14357600    Fuel_posts-&gt;base_uri( ) ..\Fuel_posts.php:111
14  112.5062    14379568    Fuel_posts-&gt;module_config( 'base_uri', ??? )    ..\Fuel_posts.php:96

Dump $_REQUEST
$_REQUEST['/en/service/news/slug-headline'] =

string '' (length=0)
A PHP Error was encountered
Severity: Error

Message: Call to a member function info() on null

Filename: libraries/Fuel_posts.php

Line Number: 138

Backtrace:
</code></pre>

<p>MY_fuel_models.php</p>

<pre><code>$config['modules']['news'] = array(
    'module_uri'     =&gt; 'news',
    'model_name'     =&gt; 'News_model',

    // ...

    // frontend pages
    // @link http://docs.getfuelcms.com/modules/simple =&gt; Generate Post Pages
    'pages' =&gt; array(
        'base_uri' =&gt; 'service/news',
        'per_page' =&gt; 10,
        'view' =&gt; 'service/news',

        'list' =&gt; 'service/news',
        'post' =&gt; 'service/news',
        'tag' =&gt; array(
            'route' =&gt; 'service/news/tag/:any',
            'view' =&gt; 'service/news', 
            'empty_data_show_404' =&gt; TRUE, 
            'per_page' =&gt; 5
        ),
        'category' =&gt; array(
            'route' =&gt; 'service/news/category/:any',
            'view' =&gt; 'service/news', 
            'empty_data_show_404' =&gt; TRUE, 
            'per_page' =&gt; 5
        )
    )
);
</code></pre>

<p>/views/service/news.php is like the example, but uses <code>get_categories_linked()</code></p>

<pre><code>&lt;?php
$slug = uri_segment(3);

if (!empty($slug))
{
    $news_item = fuel_model('news', array('find' =&gt; 'one', 'where' =&gt; array('slug' =&gt; $slug)));
    if (empty($news_item)) show_404();
}
else
{
    $news = fuel_model('news');
}

?&gt;



&lt;?php if (!empty($news_item)) : ?&gt;

    &lt;div class=&quot;news_item&quot;&gt;

        &lt;?php $news_item-&gt;get_categories_linked() ?&gt;


        &lt;?php foreach($news_item-&gt;tags as $tag): ?&gt;
            &lt;?php echo $tag-&gt;name; ?&gt;
        &lt;?php endforeach; ?&gt;

    &lt;/div&gt;

&lt;?php else: ?&gt;

        &lt;?php foreach($news as $item) : ?&gt;


        &lt;?php endforeach; ?&gt;

&lt;?php endif; ?&gt;

</code></pre>

<p>What I can't figure out is the 'pages' part in My_fuel_modules.php and the effect on /views/_post/*.php files because the script crashes in loading the category model or something</p>

<p>Here is the part where the script crashes:</p>

<pre><code>    /**
     * Returns the all the segments as a string without the base_uri() value. 
     *
     * @access  public
     * @param   string  The key value in the $config['posts']['my_module'][$key] (optional)
     * @param   string  The module's name to grab the config information from (optional)
     * @return  mixed
     */
    public function module_config($key = NULL, $module = NULL)
    {
        if (!isset($module))
        {
            $module = $this-&gt;get_module();
        }
        elseif(is_string($module))
        {
            $module = $this-&gt;fuel-&gt;modules-&gt;get($module, FALSE);
        }

        //$this-&gt;get_module(); returns null so null-&gt;info('pages') breaks it.
        $config = $module-&gt;info('pages');
</code></pre>

<p>Thanks in advance.</p>
]]>
        </description>
    </item>
   <language>en</language>
   </channel>
</rss>
