<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Permalinks - Update tables using cron</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Permalinks---Update-tables-using-cron-82332</link>
        <description></description>
        <pubDate>Sat, 14 Mar 2026 07:36:32 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Permalinks---Update-tables-using-cron-82332" rel="self" type="application/rss+xml" />

                <item>
          <title>Permalinks - Update tables using cron</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245099#post2245099</link>
          <description><![CDATA[<p>Hi Carl,</p>
<p>That's fantastic, thank you very much!</p>
<p>Regards,</p>
<p>Greg</p>]]></description>
          <pubDate>Fri, 09 Oct 2020 09:30:09 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245099#post2245099</guid>
        </item>
                <item>
          <title>Permalinks - Update tables using cron</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245098#post2245098</link>
          <description><![CDATA[<p>The constant is defined in init.php, so this should fix those errors/warnings.</p>
<pre class="language-php"><code>&lt;?php
require_once 'cmsb/lib/init.php';
require_once 'cmsb/lib/schema_functions.php';
require_once 'cmsb/lib/mysql_functions.php';
require_once 'cmsb/lib/database_functions.php';
require_once 'cmsb/plugins/permalinks/permalinks_pluginsMenu.php';

$response = _permalink_updateTable('listings');</code></pre>]]></description>
          <pubDate>Fri, 09 Oct 2020 08:28:52 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245098#post2245098</guid>
        </item>
                <item>
          <title>Permalinks - Update tables using cron</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245097#post2245097</link>
          <description><![CDATA[<p>Thanks, Carl. My plan is to create a new PHP file that I run with cron every 5 minutes.</p>
<p>This is what I have so far:</p>
<pre class="language-markup"><code>&lt;?php
require_once('cmsb/lib/schema_functions.php');
require_once('cmsb/lib/mysql_functions.php');
require_once('cmsb/lib/database_functions.php');
require_once('cmsb/plugins/permalinks/permalinks_pluginsMenu.php');

$response = _permalink_updateTable('listings');</code></pre>
<p>But when I run this I am seeing this error:</p>
<blockquote>
<pre>PHP Warning:  Use of undefined constant DATA_DIR - assumed 'DATA_DIR' (this will throw an Error in a future version of PHP) in /home/sites/8b/7/786382f535/public_html/cmsb/lib/schema_functions.php on line 127
PHP Warning:  scandir(): Directory name cannot be empty in /home/sites/8b/7/786382f535/public_html/cmsb/lib/schema_functions.php on line 131
PHP Warning:  Invalid argument supplied for foreach() in /home/sites/8b/7/786382f535/public_html/cmsb/lib/schema_functions.php on line 131
PHP Fatal error:  Uncaught Error: Call to undefined function startsWith() in /home/sites/8b/7/786382f535/public_html/cmsb/lib/database_functions.php:202
Stack trace:
#0 /home/sites/8b/7/786382f535/public_html/cmsb/lib/schema_functions.php(172): getTableNameWithoutPrefix('listings')
#1 /home/sites/8b/7/786382f535/public_html/cmsb/plugins/permalinks/permalinks_pluginsMenu.php(149): loadSchema('listings')
#2 /home/sites/8b/7/786382f535/public_html/update_permalinks_listings.php(7): _permalink_updateTable('listings')
#3 {main}
  thrown in /home/sites/8b/7/786382f535/public_html/cmsb/lib/database_functions.php on line 202</pre>
</blockquote>]]></description>
          <pubDate>Fri, 09 Oct 2020 08:05:55 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245097#post2245097</guid>
        </item>
                <item>
          <title>Permalinks - Update tables using cron</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245096#post2245096</link>
          <description><![CDATA[<p>Hi Greg,<br />I'm looking into whether or not this is possible or how it can be done. I will post an answer here when I find out more.</p>]]></description>
          <pubDate>Fri, 09 Oct 2020 08:01:33 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245096#post2245096</guid>
        </item>
                <item>
          <title>Permalinks - Update tables using cron</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245094#post2245094</link>
          <description><![CDATA[<p><span>Hi,</span></p>
<p><span>If anyone could get back to me on this question it would be hugely appreciated:</span></p>
<blockquote>
<p><span>Is it possible to configure the permalinks plugin to update a specific table on cron?</span></p>
</blockquote>
<p>Thank you,</p>
<p>Greg</p>]]></description>
          <pubDate>Fri, 09 Oct 2020 02:00:48 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245094#post2245094</guid>
        </item>
                <item>
          <title>Permalinks - Update tables using cron</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245088#post2245088</link>
          <description><![CDATA[<p>Problem identified! We need the crawler to update the permalinks table too. Manually running the permalinks plugin doesn't do this (I guess because the crawler has already created the permalinks).</p>
<p>Maybe we should just have the permalinks plugin run via cron every 5 minutes and not have the crawler create the permalinks...</p>
<p>Is it possible to configure the permalinks plugin to update a specific table on cron?</p>
<p>Thanks again,</p>
<p>Greg</p>]]></description>
          <pubDate>Tue, 06 Oct 2020 03:49:46 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245088#post2245088</guid>
        </item>
                <item>
          <title>Permalinks - Update tables using cron</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245087#post2245087</link>
          <description><![CDATA[<p>Hi Tim,</p>
<p>Thanks very much for the suggestion. I tried to run this but it didn't fix the issue...</p>
<p>Regards,</p>
<p>Greg</p>]]></description>
          <pubDate>Tue, 06 Oct 2020 03:19:50 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245087#post2245087</guid>
        </item>
                <item>
          <title>Permalinks - Update tables using cron</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245086#post2245086</link>
          <description><![CDATA[<p>Hi Greg.</p>
<p>No idea if this will help, but in the plugin screen, there's a link to "Update table" which runs /cmsb/admin.php?_pluginAction=permalink_pluginMenu_updateTable</p>
<p>Could you use that somehow?</p>]]></description>
          <pubDate>Tue, 06 Oct 2020 03:13:53 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245086#post2245086</guid>
        </item>
                <item>
          <title>Permalinks - Update tables using cron</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245085#post2245085</link>
          <description><![CDATA[<p>Hi,</p>
<p>Further to my previous post, we have modified the crawler to create the permalink so don't need to run the permalink plugin anymore.</p>
<p>So now the products are being imported with a permalink value however when I view the product page at the front end I receive a 404 error.</p>
<p>To resolve this I just need to go into CMSB, edit the product and simply click "save" (without making any changes to any of the fields) and then the product loads correctly at the front end (no more 404!).</p>
<p>I have compared the product row in the database before and after saving the listing and the fields are identical so I don't know why the product suddenly loads after saving the record in CMSB.</p>
<p>I would be extremely grateful if someone could explain to me what's going on here.</p>
<p>Thank you,</p>
<p>Greg</p>]]></description>
          <pubDate>Tue, 06 Oct 2020 02:59:20 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245085#post2245085</guid>
        </item>
                <item>
          <title>Permalinks - Update tables using cron</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2245078#post2245078</link>
          <description><![CDATA[<p>Hello,</p>
<p>I have set up a crawler to import product listings from various websites on a daily basis. I would like to have CMSB auto generate the permalinks for the products. Is it possible to somehow get the Permalinks plugin to run via cron so my product listings table has any missing permalinks generated every hour?</p>
<p>Or is there a better way to do this?</p>
<p>Thanks for any help or advice!</p>
<p>Regards,<br />Greg</p>]]></description>
          <pubDate>Sat, 03 Oct 2020 15:18:24 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2245078#post2245078</guid>
        </item>
              </channel>
    </rss>
  