mattwiz
Forum Replies Created
-
Forum: Plugins
In reply to: [Gutenberg] Permalink edit/slug name missingProblem solved. Plugin was causing a naming issue.
Forum: Plugins
In reply to: [User Role Editor] Uncaught TypeError: $(…).selectable is not a functionThanks for the tip! I was able to get everything resolved!
For someone who is having the same issue and finding this via search engine, PHP7 was missing some packages that needed to be installed manually. If you are getting the following in your server logs, just run the commands below and you should be all set.
PHP Fatal error: Uncaught Error: Call to undefined function utf8_decode()
sudo apt-get install php7.0-xml
sudo apt-get install php7.0-xmlrpc
sudo apt-get install php7.0-mbstring
sudo apt-get install php-patchwork-utf8
sudo service apache2 restartForum: Plugins
In reply to: [User Role Editor] Uncaught TypeError: $(…).selectable is not a functionUpdate:
I got the remaining scripts enqueued. Now it shows:
<script type='text/javascript' src='https://mydomain/wp-admin/load-scripts.php?c=0&load%5B%5D=hoverIntent,common,admin-bar,svg-painter,heartbeat,wp-auth-check,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sorta&load%5B%5D=ble,jquery-ui-draggable,jquery-ui-droppable,jquery-ui-selectable,jquery-ui-position&ver=4.8'></script>
However, I am still getting the error.
Update 2:
I went into the Plugin code and set all of the JS to load in the footer instead and that fixed the JS error. However, upon saving – the page went blank and the update still did not save.
- This reply was modified 7 years, 8 months ago by mattwiz.
Forum: Plugins
In reply to: [User Role Editor] Uncaught TypeError: $(…).selectable is not a functionAll it shows is this:
<script type='text/javascript' src='https://mydomain/wp-admin/load-scripts.php?c=0&load%5B%5D=jquery-core,jquery-migrate,utils&ver=4.8'></script>
Looks like it’s not loading a bunch of things. It seems to be doing that on every admin page. If you have any idea what might cause this, I’m all ears. Otherwise, I’ll mark this as resolved and search for the answer elsewhere on the web. Thanks for the help so far!!!
- This reply was modified 7 years, 8 months ago by mattwiz.
Forum: Plugins
In reply to: [User Role Editor] Uncaught TypeError: $(…).selectable is not a functionNo sir there is not. Everything is functioning 100% until I hit the button in the pop-up to save my changes and then I get a blank screen and the error.
I’m sorry, I don’t understand. What do you mean the widgets section for the theme?
The theme is a custom theme I am in the process of building now. No matter what I have tried, I can’t get the widget to not appear under the available widgets. If you go to Appearance > Widgets in the WordPress admin, even after running the unregister_widget function, the widget still shows up. I am trying to remove it all together.
Thanks again for the help.
I was able to find out the class name for the widget is “ICWP_WPSF_Plugin_Badge” but adding unregister_widget(‘ICWP_WPSF_Plugin_Badge’) to widgets_init doesn’t do anything either. It’s like the widget is getting added later on or something.
If you are talking about the one under “Dashboard -> General Options” that doesn’t appear to be the same one.
I have the setting unchecked.
But the widget is still registered and shows up under available widgets.
- This reply was modified 7 years, 9 months ago by mattwiz.
Thanks!!!
Found a response for this question. Thank you.