Permalinks plugin not creating links for existing records

By JeffC - January 23, 2018


I am struggling to make the 'Update Tables' function work on the permalink plugin. I have run the debug and this is the results. Lots of 'non-existent-url' references, which i assume isn't right:

$server[] = array (
'date' => '2018-01-23 15:17:06',
'HTTP_HOST' => 'my domain name here',
'SERVER_SOFTWARE' => 'Apache',
'PHP_VERSION' => '5.6.33',
'PHP_UNAME' => 'Linux [info removed] #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64',

'_NOTES_' => '',
'---------' => '---------',
PHP_SELF' => '/cmsb/plugins/permalinks/permalinks_dispatcher.php',
'PHP_SELF_ORIGINAL' => '/cmsb/plugins/permalinks/permalinks_dispatcher.php',
'QUERY_STRING' => 'this=that',
'REDIRECT_QUERY_STRING' => 'this=that',
'REDIRECT_SCRIPT_URI' => 'http://mydomainname/non-existant-url',
'REDIRECT_SCRIPT_URL' => '/non-existant-url',
'REDIRECT_URL' => '/non-existant-url',
'REQUEST_URI' => '/non-existant-url?this=that',
'SCRIPT_FILENAME' => '/home/xxxx/public_html/xxxx/cmsb/plugins/permalinks/permalinks_dispatcher.php',
'SCRIPT_NAME' => '/cmsb/plugins/permalinks/permalinks_dispatcher.php',
'SCRIPT_URI' => 'http://mydomainame/non-existant-url',
'SCRIPT_URL' => '/non-existant-url',
--------' => '--------',
'_OUTPUT_ACTUAL_' => '/non-existant-url',
'_OUTPUT_EXPECTED_' => '/non-existant-url',



By Dave - January 23, 2018

Hi Jeff, 

That looks correct at first glance.  /non-existant-url/ is a hard-coded test value.  

What happens when you run "Updated Tables"?  Do you get an error?  Or just nothing happens?

And which version of Permalinks are you running?

Dave Edis - Senior Developer

By JeffC - January 24, 2018

Hi Dave

I'm running cmsb v3.12 (Build 2159) and permalinks 1.08.

I don't get an error when running Update Tables but the problem is wider than I realised. When permalinks is active (I have currently deactivated it, so there isn't an immediate panic to fix this) I am unable to save any changes to a section. When trying to save a record I get the error message: Permalinks: Permalink filepath does not exist '/home/username/public_html/foldername/filename.php'!



By Dave - January 24, 2018

HI Jeff, 

Can you email me CMS and FTP login details along with a link to this post and steps to reproduce the issue to  We can take a look and let you know what we find.  Note, don't post login details to the forum.  Thanks!

Dave Edis - Senior Developer