capbussat
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: PHP 7.4 to PHP 8.1: Uncaught TypeErrorYou can count elements of an array , but you can not count strings with count() function. It seems $value is a string.
Either, the cause is a plugin or a theme. If you think is the theme, please change theme to a WP standard theme (as Twenty Twenty or Twenty Twenty Three) and look if the error dissappears!
I do not know what theme you use, but if your theme is not maintained any more you have to select another one.
Forum: Developing with WordPress
In reply to: PHP 7.4 to PHP 8.1: Uncaught TypeErrorThis is correct. Count will throw an error in above 8.0 but a warning in 7.4.33 as this “Warning: count(): Parameter must be an array or an object that implements Countable in /home/user/scripts/code.php on line 5
1″I do not think it’s in WordPress but in a plugin or theme.
You may try to inactivate plugins one by one or change theme to find the culprit.
Well, I find out myself. A menu is a post type ‘wp_navigation’ in the post table. Just solved.
Forum: Fixing WordPress
In reply to: WP Block does not save to database and does not preview in a new tabOk, so let’s expand this question how can I check that my block is registered correctly in WordPress?
Forum: Networking WordPress
In reply to: Multisite issue can not access NetworkSolved. The issue was the plugins were enabled. I deleted all plugins from directory and now it works again.
Forum: Fixing WordPress
In reply to: WordPress pages redirect to the homepageThis website is currently down?
Gateway time-out Error code 504
Visit cloudflare.com for more information.
2023-01-03 11:26:42 UTClemotwordle.com
Forum: Plugins
In reply to: [Toggle Content] Can not installFine! Really Thank you
Forum: Fixing WordPress
In reply to: Navigation Block user interface needs improvementsCorrection: it’s the theme that supports or not classic menus. If you revert to a classic theme (without the block editor) classic menus appear.
Forum: Fixing WordPress
In reply to: Navigation Block user interface needs improvementsThe cassic editor plugin only is useful for posts. I have used it a lot to alternate between the two editors. But, the classic menu editor is not supported with this plugin.
Forum: Fixing WordPress
In reply to: Navigation Block user interface needs improvementsThanks a lot. I will ask for an enhancement.
Forum: Plugins
In reply to: [Category Tag Pages] Plugin Abandoned?There is so little code in it that i think it’s not a security risk.
Finally, I understand why mine is not working. It is mentioned here: https://woocommerce.com/document/payments/connection/ but not here: https://woocommerce.com/document/payments/testing/dev-mode/
Please update documentation!Thanks
- This reply was modified 2 years, 7 months ago by capbussat.
Forum: Fixing WordPress
In reply to: sameSite set to none warning for cookie ” wp-saving-post”Ok,you were right it seems to me the cause may be ‘Classic Editor’ plugin. The message appears on debugger console when I edit a post and click on ‘Update’.
Cookie “wp-saving-post” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite load-scripts.php:8:893
… wp-admin/load-scripts.php?c=1&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=5.9
- This reply was modified 2 years, 9 months ago by capbussat.
Forum: Plugins
In reply to: [Progressive WordPress (PWA)] Offline Content textarea issue in FirefoxI thinks is related to CSS CODE
If I drop the follow line it works:
white-space: nowrap;`.pwp-wrap textarea#offline-content {
height: 150px;
line-height: 180%;
font-size: 12px;
white-space: nowrap;
}- This reply was modified 3 years, 2 months ago by capbussat.
Forum: Developing with WordPress
In reply to: dbDelta issueYou are right about the index. I have used the following (just for the record):
ALTER TABLE
wp_mis_cursosADD INDEX
codigo(
codigo`(20));You are right also about using IF NOT EXISTS avoids logging and error, but it was not what I intended using dbDelta.
For me, dbDelta should upgrade the table if-and-only-if there are changes at previous table structure, like adding or removing columns.
My issue is with dbDelta itself, in this case I do not know why dbdelta does not work.Thanks