Login | Sign up | Toll-Free: 1-800-752-0455



4 posts by 2 authors in: Forums > CMS Builder
Last Post: July 6, 2017

i am getting this fatal error message when I try and view photo that was an upload field in the CMS (see cms_photo_upload.png attached). You can see the sort of broken link Not sure why it is a permalinks error since permalinks (while there) is not installed (see attached cms_plugins.png attached).

Fatal error: Call to undefined function _permalink_getRedirectUrl() in /home/xanitoshqadmin/public_html/cmsb/plugins/permalinks/permalinks_dispatcher.php on line 12

I am running cms 3.02, build 2060.


Hi carig_bcd, 

If you are no longer using permalinks check your .htaccess file and comment out any code that redirects not found urls to permalinks_dispatcher.php.

My guess is that uploaded file got removed or has the wrong upload folder path and the not found URL is being redirected to a permalinks dispatcher that is no longer active.

Hope that helps!

Dave Edis - Senior Developer

Hey Dave - 

Thanks for getting back to me, I did not have permalinks in the subsite but in the parent site and once I removed that it was fine.  However, it is still not giving me the preview and I suspect it is because it is not picking up the correct path.  In this case the primary site is xanitoshq.com but the subsite is xanitos.com it works totally fine in the code so it is finding (I presume) the relative path correctly but when I update the subsite content in the primary site where the cms is installed I get the broken link issue - i can see the pathing is not correct when I rollover the broken link, it should be xanitoshq.com/x/assets/images/cmsb but it is showing up as xanitoshq.com/assets/images/cmsb but the website totally finds the photo correctly (which ultimately is xanitos.com/assets/images/cmsb).  I have included screen shots of the xanitoshq.com (where the cms is installed - cms_uploads_dir.png) and the section of the site that has the subsite content where I am having the issue (cms_leadership_custom_uploads_dir.png)




Hi Craig, 

Are you displaying the images from two different domains with different paths? eg: /assets/images/cmsb/ is needed on one domain but /x/assets/images/cmsb/ is needed on the other domain?

If so, one solution is to use the same domain for everything, eg: domain.com/x/ to get to the cms.  

Or alternatively setting an absolute url on the Upload Folder Url values in the CMS so the appropriate absolute url can always be determined. eg: http://example.com/uploads/

Let me know if either of those options work for you.

Dave Edis - Senior Developer