permalinks autopopulate not working

By mizrahi - July 31, 2017

i recently upgraded a site and added the permalinks plugin, but the autopopulate feature is not working for me...

CMS v3.10
Permalinks plugin 1.08
PHP v7.1.7

Error received:
An unexpected error occurred #17. You must enter a value for 'permalink'!

if I add the permalink manually it does save and works properly.

By Dave - August 1, 2017

Hi mizrahi, 

Sounds like there is some kind of error.  

The "unexpected error occurred #17" is what you see what you have PHP errors hidden.  The #17 refers to the error record number.  Can you have a look in the "Developer Log" and let me know what the error is?  Or try this link: admin.php?menu=_error_log&action=edit&num=17

Let me know what you find.  Thanks!

Dave Edis - Senior Developer

interactivetools.com

By mizrahi - August 2, 2017

The error in the developer log is...

E_WARNING: preg_replace(): Compilation failed: nothing to repeat at offset 7

Let me know if you also need the backtrace

By Dave - August 8, 2017

Hi mizrahi, 

Does it say which file and line number?

If you'd like me to take a look directly feel free to email me a link to this post and the CMS/FTP login details to the server to dave@interactivetools.com.  Note: Don't post login details to the forum.

Thanks!

Dave Edis - Senior Developer

interactivetools.com

By mizrahi - August 14, 2017

filepath...

/admin/plugins/permalinks/permalinks.php

Line num 163

By mizrahi - August 14, 2017

I figured it out. I had added a few items to autopopulate_skipWords and they were causing the issue. I was tried adding question mark, exclamation point and period - once I took these away, it works again.

Is there a way for me to add these?

By Dave - August 14, 2017

Hi mizrahi, 

It should work, I can take a look if you like.  Email FTP and CMS login details, a link to this post, and the steps to reproduce to dave@interactivetools.com.  Note: Do not post login details to the forum.

Dave Edis - Senior Developer

interactivetools.com