Getting a Fatal Error: Call to undefined function _permalink_getRedirectUrl()

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

By craig_bcd - July 5, 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.

Thanks!

By Dave - July 5, 2017

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
interactivetools.com

By craig_bcd - July 5, 2017

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)

thanks!

Craig

.