Comments (2)
I got it again for WordPress 6.3 on 9th August 2023
from oik-shortcodes.
And again for WordPress 6.4 on 8th November 2023.
Reproduced in wp.a2z
The problem occurs for code such as
add_action( 'wp_head', 'do_activate_header' );
The token being processed is the closing parenthesis.
The logic is supposed to be creating a link to the 'do_activate_header
function.
But the $key
is the wrong value.
[0] => (integer) 629
[1] => (string) "do_activate_header"
[2] => Array
...
[627] => Array
[0] => (integer) 320
[1] => (string) "'do_activate_header'"
[2] => (integer) 82
[628] => *RECURSION* 623 1
[629] => (string) ")"
0. bw_lazy_backtrace C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\libs\bwtrace.php:108 0
1. bw_backtrace C:\apache\htdocs\wordpress\wp-content\plugins\oik-bwtrace\includes\bwtrace-actions.php:293 0
2. bw_trace_error_handler(2,Only the first byte will be assigned to the string offset,C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\shortcodes\oik-api-importer.php,1867) C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\shortcodes\oik-api-importer.php:1867 4
3. oikai_handle_token_T_STRING(629,do_activate_header,array,) C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\shortcodes\oik-api-importer.php:1711 4
4. oikai_handle_association(629,do_activate_header,array,61731) C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\shortcodes\oik-api-importer.php:1758 4
5. oikai_handle_dummy_TCES(629,do_activate_header,array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\shortcodes\oik-api-importer.php:2256 3
6. oikai_handle_char_comma(629,),array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\shortcodes\oik-api-importer.php:2280 3
7. oikai_handle_char_rparen(629,),array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\shortcodes\oik-api-importer.php:2215 3
8. oikai_handle_char(629,),array) C:\apache\htdocs\wordpress\wp-content\plugins\oik-shortcodes\shortcodes\oik-api-importer.php:2358 3
A pragmatic solution would be to check if the token we're trying to update is an array.
If so, we can assign the value. If not, forget about it.
from oik-shortcodes.
Related Issues (20)
- Cannot skip a file that fails to parse HOT 1
- Catchable fatal error during restart after out of memory HOT 1
- Fatal error: Cannot use "self" when no class scope is active HOT 1
- Add Blocks Catalogued virtual field to display the number of blocks catalogued for a plugin HOT 4
- Delete temporary files starting oikscloa from the /tmp folder to avoid getting disk full HOT 1
- Add support for block variations HOT 6
- oik_get_the_excerpt returning incorrect results in Full Site Editing HOT 1
- Parse error: syntax_error, unexpected ';', expecting '(' in /tmp/oikscloae0qwnk on line 2 HOT 5
- Allow comments for Blocks and Block examples CPTs
- Support PHP 8.1 and PHP 8.2 HOT 4
- [blocks] shortcode - extend to support links to block variations HOT 1
- Remove compatible with shortcake field HOT 1
- Notice: Block type is already registered running oikwp oik-shortcodes.php HOT 2
- Extend the dynamic implementation of `oik-block/blocklist` to "Determine updates to apply" HOT 3
- Cannot parse Jetpack 11.5.1 HOT 4
- Support PHP 8.1 and PHP 8.2 HOT 3
- Block template: Replace oik-blocks/fields for featured image with core/post-featured-image HOT 1
- Undefined array key "category" in oik-block-determine-updates.php line 104
- Disable dynamic parsing of code where not required
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oik-shortcodes.