hpb1980
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress ‘critical’ error after server OS upgradeI can’t get into the Dashboard itself to access Tools/Health. However, on further digging on the server I see that my nginx config points to,
fastcgi_pass unix:/var/run/php/php-fpm.sock
. However,/var/run/php/php-fpm.sock
is symlinked to/etc/alternatives/php-fpm.sock
which is symlinked to/run/php/php8.1-fpm.sock
instead of 7.4.I’m guessing this is the issue?
Forum: Fixing WordPress
In reply to: WordPress ‘critical’ error after server OS upgradeThanks, I downgraded and switched from 8.1 to 7.4.30 but I still the same error.
Adding
._index
and._key
did not work. However, addingtrim
to{@webinar_button_icon}
worked!! Thanks again.- This reply was modified 3 years, 9 months ago by hpb1980.
Just tried this and now the value retains in the custom post type field. However, I tried outputting the value of
{@webinar_button_icon}
and I see that thelabel
is being outputted and not thevalue
.- This reply was modified 3 years, 9 months ago by hpb1980.
Hi, I sort of figured this out. Instead of the full HTML, I now replace only the
class
in the HTML. For this I had to change the custom field value from Value|Label to only value. Hence,{@webinar_button_icon}
is now the following list,fas fa-angle-right fas fa-arrow-circle-right fas fa-play-circle fab fa-youtube fas fa-exclamation-circle fas fa-comments fas fa-headphones fas fa-podcast
This list is not very intuitive for users since they do not understand what the icons are right away. To solve this, I defined them this way –
'fas fa-arrow-circle-right'|Right arrow in circle
(enclosing the value in single quotes). With this, the value would not hold in the custom post type, i.e. each time I would select a value and when the custom post type was updated, it would again go back to showing “Select a value” for the icon field. Anyway I can define this invalue|Label
format?Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Actual image instead of the URLThis worked. Thanks ??
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Actual image instead of the URLHi,
This is the page where the image is supposed to appear (below the download the ebook box on the right side): https://dev.excellarate.com/webinars/technology-roadmaps-accelerated-with-remote-teams/
This was built using WP-Bakery’s page builder. They have the ability to add raw HTML blocks. One of those contains the following code. This, however, does not show me anything.
<img src="{@webinar_speaker_1_image}" />
I tried adding this shortcode
[pods field="webinar_speaker_1_image"]
as the src attribute but this just breaks the img tag on publishing. I also tried adding the same shortcode in a text box and that returned only the image URL.Forum: Fixing WordPress
In reply to: Not able to save settings or create new pagesForum: Fixing WordPress
In reply to: Not able to save settings or create new pagesPermalinks with the ‘Plain’ option selected loads all the pages. However, anything other than that shows me a 404 when I try and access pages other than the homepage. With the default theme too I see 404 for pages other than the homepage. Unfortunately I do not have a public URL. I’m trying it out on my local Raspberry Pi.
Forum: Fixing WordPress
In reply to: Not able to save settings or create new pagesHi Jackie, user and group are the default Apache ones- ‘www-data’. I think I have this fixed. It was being caused because of a plugin which I have now disabled. However, I can now only see the main page and when I try and access any of the posts or the pages I see a 404 error. Nothing on the error logs. Here is the .htaccess file. At first I thought this would be a file permissions error. Which is why I changed the file and folder permissions to 775 instead of the regular 755 for folders and 644 for files but that did not work either.
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
EDIT: Permalinks with the ‘Plain’ option selected loads all the pages. However, anything other than that shows me a 404 when I try and access pages other than the homepage.
- This reply was modified 8 years, 5 months ago by hpb1980.
Forum: Fixing WordPress
In reply to: wp-cron keeps giving a 404 error@daniel, is there some documentation around using WP-CLI for Backwpup?
Forum: Fixing WordPress
In reply to: wp-cron keeps giving a 404 errorHi Daniel, let me give that a shot and see if it works. I’ll post here if I face problems.
Got it! Thanks.
Forum: Fixing WordPress
In reply to: Redirecting subdomain URLs post migrationDidn’t quite work. Is it supposed to be like this?
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^blog\.domain\.com$ [NC] RewriteRule ^https://domain.com/blog [NC,R=301] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
My apologies on the delayed responses. I still have not figured out how to make this work. I’ll write back when I need more help. For the moment, this can be marked as resolved. Thanks again for everything.