wlpdrpat
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Blog posts not showing.@severuscold Next time if you run into a css issue just ask. I could have given you that code very quickly – I just needed to understand what you were looking to do. Cheers.
Forum: Fixing WordPress
In reply to: Theme Options Page Form Field Question@aatanasov Here is what prints:
footer_promo_textcustom_clinic_detailscheckup_customqualificationspecialty_display0specialty_1specialty_2specialty_3specialty_4specialty_5specialty_6specialty_7specialty_8specialty_9omit_pagesArray ( [0] => 9 [1] => 8 )
The page has 3 wp_editor, 3 textarea, 19 text, 8 checkbox, 1 multiselect, 2 select.
@filmmannen Have you tried to upload the files that failed again? Do they continue to fail? Did you try waiting a few hours and trying again?
Given the fact that your max file size isn’t the problem and the file type isn’t the problem then I am guessing it is a transient disconnect issue or the issue is with your hosting setup but these are just guesses. You could try to debug the issue if you have a file that consistently fails to upload, then try turning on wp debug mode by adding the following to your wp-config.php and then upload the file. After it fails then check the error.log for details.
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 );
Add the code just before the “That’s all…Happy blogging” message.
The error log will be generated in the wp-content directory. Post the error message here and we will see what can be done.
Forum: Fixing WordPress
In reply to: Theme Options Page Form Field Question@aatanasov The page shows this:
0Array ( [0] => 9 [1] => 8 )
There has been a critical error on this website.Learn more about troubleshooting WordPress.
Forum: Fixing WordPress
In reply to: Theme Options Page Form Field Question@aatanasov I added the code as follows:
$x_maincont_details = array(); foreach($x_maincont_opt as $key=>$val) { $optkey = str_replace('x_','',$key); if(isset($_POST[$optkey])) { print_r( $_POST[$optkey] ); exit(); $x_maincont_details[$key] = stripcslashes($_POST[$optkey]); } else { $x_maincont_details[$key] = ''; } }
When I save the page I get a blank page with no error message on the page or in the error log. Should I be looking somewhere specific for the information printed from
$_POST[$optkey]
Forum: Fixing WordPress
In reply to: Theme Options Page Form Field Question@aatanasov Here is the error log:
[01-Oct-2022 20:40:57 UTC] PHP Fatal error: Uncaught TypeError: stripcslashes(): Argument #1 ($string) must be of type string, array given in /var/web/site/public_html/wp-content/themes/x/maincontent.php:55 Stack trace: #0 /var/web/site/public_html/wp-content/themes/x/maincontent.php(55): stripcslashes(Array) #1 /var/web/site/public_html/wp-content/themes/chiro/functions.php(1031): require('/var/web/site/p...') #2 /var/web/site/public_html/wp-includes/class-wp-hook.php(307): chiro_main_content_page('') #3 /var/web/site/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #4 /var/web/site/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #5 /var/web/site/public_html/wp-admin/admin.php(259): do_action('appearance_page...') #6 /var/web/site/public_html/wp-admin/themes.php(10): require_once('/var/web/site/p...') #7 {main} thrown in /var/web/site/public_html/wp-content/themes/x/maincontent.php on line 55
Here is the code from lines 49-61:
$x_maincont_details = array(); foreach($x_maincont_opt as $key=>$val) { $optkey = str_replace('x_','',$key); if(isset($_POST[$optkey])) { $x_maincont_details[$key] = stripcslashes($_POST[$optkey]); } else { $x_maincont_details[$key] = ''; } }
Forum: Fixing WordPress
In reply to: Theme Options Page Form Field Question@aatanasov I spoke too soon. The options page looks perfect now but when I save the page it throws a critical error. Thoughts on that? I’m guessing I need to turn on debug and see what errors are thrown.
- This reply was modified 2 years, 5 months ago by wlpdrpat.
Forum: Fixing WordPress
In reply to: Theme Options Page Form Field Question@aatanasov Thanks for your reply. I created a short screencapture video to show you what is happening. https://www.awesomescreenshot.com/video/11449096?key=ba9807bc2c57983f1a0b61a120c66c50
No js errors are in the console.
Forum: Fixing WordPress
In reply to: Administration email change@rmunir I can certainly understand your frustration. I went through the same issue with my first wordpress site. The good news is that you can get it done in a variety of ways depending on your circumstance and experience level will determine the best route.
Here is an excellent article that covers the process very nicely and will provide you with some good insights into the type of email you should use to ensure delivery of important messages.
https://www.wpbeginner.com/beginners-guide/how-to-change-the-wordpress-admin-email/
Forum: Fixing WordPress
In reply to: downloadable form form user@stefanocps That is a tough question as you are looking for something very specific. You could search the plugin repository for digital signature plugins. Some of them will allow you to customize the pdf document and ask the user to click to provide a digital signature and then they can download it.
https://www.ads-software.com/plugins/search/wp+esign/
Other plugins are good for approving terms and conditions:
https://www.ads-software.com/plugins/terms-popup-on-user-login/Forum: Fixing WordPress
In reply to: Admin Menu Layout@digbar Can you send a screenshot of what you are seeing? My guess at this point would be that you have a plugin that is creating a conflict but without seeing the issue I can’t be sure. You can test to see if it is a plugin issue by using the following plugin:
https://www.ads-software.com/plugins/health-check/
This will deactivate all plugins and revert to the default theme on the admin side without affecting what your site visitors see. If this solves your problem then your issue is caused by a plugin or theme conflict. Be sure to update all of your plugins and themes and if that doesn’t resolve the issue then use the health check plugin to reactivate your plugins one by one until the issue shows up again. When it shows up then the plugin you just activated is the problem. Be sure to report the issue to the plugin developer in the repository support forum: www.ads-software.com/plugins/ and they will typically fix the issue pretty quickly.
@filmmannen Based on what you have described I am guessing that the limitation you are facing is based on the file size (because you are able to upload mp3 so it is not a file type restriction). To see what your upload restriction is go to WP-Admin > Media > Add New then look just below the uploader for a notification that tells you the upload size limit or max file size.
If you need to upload larger files then you will have to change this value. Changing it depends on your hosting and WordPress setup. Here is an article that covers the most common ways of increasing your max upload file size:
https://www.cloudways.com/blog/increase-media-file-maximum-upload-size-in-wordpress/Or you can visit the plugin repository to get a plugin to help increase this value: https://www.ads-software.com/plugins/search/upload+file+size/
Forum: Fixing WordPress
In reply to: Blog posts not showing.@severuscold You currently have the following css added to the page which is hiding your content.
.hentry { display: none; }
I’m not sure where this css has been added but you can check here: Appearance > Customize and then click on Additional CSS. If you see it there, then remove it. If you don’t see it there, then add the following:
.hentry { display: block!!important; }
Be sure to click save and publish after changing the custom css.
- This reply was modified 2 years, 5 months ago by wlpdrpat.
Forum: Fixing WordPress
In reply to: Mobile menu only loads after multiple page refreshes@sannewestendorp I’m not able to reproduce this issue. It loaded for me immediately.
You may have been experiencing a caching issue. When you swipe down 3 times on most mobile devices it tells the browser to clear the cache of the page you are visiting. Most mobile browsers hold the cache for pages much longer than desktop browsers to help improve page speed delivery. As such, your page visitors unless they previously visited the page should be seeing the latest version.
Please try checking it on a mobile device that you haven’t used to visit the site previously and you should see what your typical site visitor will see.
Forum: Fixing WordPress
In reply to: How to recreate this site?@dragondon Yes, recreating it should definitely be rather easy. You could easily use the default theme that comes with WordPress https://wordpress.com/theme/twentytwentytwo
If you need to hire someone to help transfer content and recreate it for you on WordPress, I know a lot of developers on fiverr.com do great work and very reasonable pricing. You could easily get them to recreate your current site for $20-30.
If you prefer to do it yourself, then be sure to review some of the getting started with WordPress tutorials. There are many on www.ads-software.com and many more available online – just google or youtube it.