Ashutosh Sharma
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: selecting text BugI can easily select text here. It’s more likely a problem with your browser. You should disable Chrome extensions, or use a different browser to check.
Forum: Fixing WordPress
In reply to: selecting text BugShare an example website.
Forum: Fixing WordPress
In reply to: Subheading ColorForum: Fixing WordPress
In reply to: Site inaccessible after restoring from a backupFatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /home/thehisto/public_html/wp-content/plugins/revslider/includes/output.class.php on line 1912
You have an outdated version of Revolution Slider plugin, which isn’t compatible with your PHP version. You should either update the plugin, or disable it.
Now, the website loads, but it displays a different site under our URL
Maybe you have restored the wrong backup. You should access your database (from your hosting dashboard) and check the options table to confirm.
Forum: Developing with WordPress
In reply to: Proposal: Increase cURL timeout to 60sBut
wp_remote_request
usesWP_Http
class?Forum: Fixing WordPress
In reply to: Updates take forever because “old translations couldn’t be deleted”Maybe my problem with the plugins not updating and wordpress updates failing is related somehow? Do you have any ideas?
I guess your WP files and directories have wrong ownership. Your current permissions, 755 and 644, won’t work if the files/directories are owned by a different user account, as they only allow “owner” to write files. You can read more about it here.
Forum: Developing with WordPress
In reply to: Modifying a functionYour syntax is breaking on the
echo
line because you are not using quotes properly. You need to escape quotes when you have nested quotes:function introduzione_meta_box_render($post) { // Get the number and display it in a numeric field $introduzione = get_post_meta($post->ID, 'function_camere', true); echo '<div><select name="function_camere">'; $i = __("L'appartamento si compone di:",'sacconicase'); echo '<option value="L\'appartamento si compone di:" ' . selected($saved, "L'appartamento si compone di:", false) . ' >' . $i . '</option>'; $i = __('La casa si compone di:', 'sacconicase'); echo '<option value="La casa si compone di:" ' . selected($saved, 'La casa si compone di:', false) . ' >' . $i . '</option>'; echo '</select></div>'; }
Or store the value in a variable and use that variable if you are getting confused:
function introduzione_meta_box_render($post) { // Get the number and display it in a numeric field $introduzione = get_post_meta($post->ID, 'function_camere', true); $original_text = "L\'appartamento si compone di:"; echo '<div><select name="function_camere">'; $translated_text = __($original_text, 'sacconicase'); echo '<option value="' . $original_text . '" ' . selected($saved, $original_text, false) . ' >' . $translated_text . '</option>'; $original_text = 'La casa si compone di:'; $translated_text = __($original_text, 'sacconicase'); echo '<option value="' . $original_text . '" ' . selected($saved, $original_text, false) . ' >' . $translated_text . '</option>'; echo '</select></div>'; }
Forum: Developing with WordPress
In reply to: wp-config.php:121 error/** Database queries logging. */ // define('SAVEQUERIES', false);
Forum: Developing with WordPress
In reply to: Proposal: Increase cURL timeout to 60sYou can use
WP_Http
class instead, it supportshttp_request_timeout
filter.WP_Http_Curl
class is also deprecated (WP 6.4).Forum: Developing with WordPress
In reply to: wp-config.php:121 errorComment out the second line:
// define('SAVEQUERIES', false);
Forum: Fixing WordPress
In reply to: Need help with configurationEnable WP debugging mode, set
WP_DEBUG_DISPLAY
tofalse
andWP_DEBUG_LOG
totrue
(mentioned in the article). Hit refresh on this page, then go to/wp-content/debug.log
file to see any captured errors.Forum: Fixing WordPress
In reply to: Images not showing as “attached” when bulk uploadedYou can create a test post/page/product, and bulk upload images to it, all the uploaded media will be attached to that particular post.
As per my understanding, import script should be responsible for attaching sideloaded media to posts.
Forum: Fixing WordPress
In reply to: Post has automatic css while sharingNothing to fix here, this is just how URLs work. Check any non-English URL link and paste it as URL, it will be encoded.
If you want to show the characters, you will have to copy and paste it as normal text:
https://hadapsarexpress.com/2023/12/???-???-?????-????????-??/
You can use any URL decoder to convert the encoded string to plain string. Or select the address bar and add a space at the end of the URL to copy the URL as plain text.If you are a Firefox user, you can enable
browser.urlbar.decodeURLsOnCopy
preference (go toabout:config
and set this totrue
). Whenever you copy the URL, it will then be decoded to normal string by Firefox. Or install a browser addon/extension allowing you to copy decoded URLs.Forum: Fixing WordPress
In reply to: Page is slow to loadPerhaps this is also related to WPBakery Page Builder not loading
Yes, it uses JS for the functionality, but if the JS links are invalid, it won’t work.
You have a custom theme, so it is hard to tell if it is a plugin or your theme.
Open
functions.php
(WP Dashboard ? Appearance ? Theme File Editor and select “Theme Functions” (functions.php) from the list on right side. Then click inside the editor, pressCTRL + F
to enter find mode, typedefer
and press enter. If there is a match, take a screenshot of the code, and share it here. Make sure that at least 3–4 lines before and after the matching text is visible. And don’t click “Update file” button.Otherwise, go to WP Dashboard ? Tools ? Site Health ? Info, then select “Copy site info to clipboard” and paste the copied info here in a code block.
Forum: Fixing WordPress
In reply to: Page is unstyled on first load, refresh styles itYou are using Jetpack Boost to generate critical CSS. It is possible that the issue was happening when it was working on analyzing and removing CSS. And now that the process is complete, you are no longer getting FOUC.