Staticsync $nogo ignored from update 8.6 to 9.6

46 views
Skip to first unread message

Opicron

unread,
Aug 26, 2021, 6:42:30 AM8/26/21
to ResourceSpace

I upgraded my RS from 8.6 to 9.6. The config file is correct and an quick test in staticsync.php shows that the $nogo variable is filled with the correct path.

However the folder still gets processed. What could it be?

$nogo="[.sync]";

I truly hope one of you know the issue!


Scott Pronych

unread,
Oct 9, 2021, 11:44:28 AM10/9/21
to ResourceSpace
I ran into the same issue and it looks like that with the 9.6 update they "broke" the way that static sync and $nogo works. If you use the full path of the folder then the folders will be ignored. If you want to go back to the previous behaviour where folder names are matched (and not full paths) then you will need to edit the source code. The fix I am using is as follows:

1. Open this file: 
/pages/tools/staticsync.php

2. Add this at line 273: 
$nogo_folder = basename($fullpath);

3. Edit line 276 to be:
&& strpos($nogo, "[{$nogo_folder}]") === false

Scott
Reply all
Reply to author
Forward
0 new messages