Error ignored not own car trace

I'm using Laravel 5.1 to create a console based application. During development I would like to display the exception trace when an error occurs. However, even if I use -v -vv or -vvv option in php

I’m using Laravel 5.1 to create a console based application. During development I would like to display the exception trace when an error occurs. However, even if I use -v -vv or -vvv option in php artisan, I don’t get an exception trace for my custom commands. I set APP_DEBUG=true in my .env, still no exception trace.

Output of php artisan some:unknowncommand is:

[InvalidArgumentException]                              
There are no commands defined in the "some" namespace.

Output of php artisan -v some:unknowncommand is:

[InvalidArgumentException]                              
  There are no commands defined in the "some" namespace.  

Exception trace:
 () at /Users/dirkpostma/Dropbox/Domains/dpepp/vendor/symfony/console/Application.php:501
 SymfonyComponentConsoleApplication->findNamespace() at /Users/dirkpostma/Dropbox/Domains/dpepp/vendor/symfony/console/Application.php:535
 SymfonyComponentConsoleApplication->find() at /Users/dirkpostma/Dropbox/Domains/dpepp/vendor/symfony/console/Application.php:192
 SymfonyComponentConsoleApplication->doRun() at /Users/dirkpostma/Dropbox/Domains/dpepp/vendor/symfony/console/Application.php:126
...

Now, I created a very simple console command called dp:test, with following handle function:

/**
 * Execute the console command.
 *
 * @return mixed
 */
public function handle()
{
    generate error here
}

Output of php artisan dp:test is:

[SymfonyComponentDebugExceptionFatalErrorException]
syntax error, unexpected 'error' (T_STRING)    

Output of php artisan -v dp:test is the same.
Output of php artisan -vvv dp:test is the same.

The log file DOES show the exception trace, so somehow it should be possible to display it in cli. I don’t even see the filename and linenumer where the error occurs… How can I take care of this?

Thanks in advance!

EDIT:

Is digged a bit further. In case I use this in my Command:

public function handle()
{
    throw new Exception("test exception");
}

and I issue the command php artisan -v dp:test, the error trace IS printed. The trace is only not printed when the exception is thrown due to a PHP error. In Illuminate/Foundation/Bootstrap/HandleExceptions.php method bootstrap PHP errors are converted to Exceptions. When this occurs, an exception is thrown, but the -v is somehow ignored when printing. This is very inconvenient because it makes debugging CLI apps hard.

I think the solution can be found in vendor/symfony/console/Application.php, method renderException.

I’m going to dig further later, unless someone else can point the solution faster than me :-)

Howdy guys n Gals,

I am at my wits end with these crashes, i have tried for going on a week to try and stabilize this hunk of crap and yet no matter what i do it continues to crash with a

«stack trace:

at address 0x00007FFBD22712DE»

Error.

I am only using the newest Anomaly torrent, verified and redownloaded anyways, and the newest BaS alone. Yes it crashes with a stack trace error with or without BaS enabled. I cant enable warfare mode or else it crashes even more frequently. I use MO for mods and am an experienced modder, both use and making, understand conflicts and how to resolve them. I have reinstalled both mod and Anomoly multiple times, and changed all settings to lowest and highest in attempt to investigate this issue.

ill post my error log below along with my specs.

Hopefully someone can help.

Specs: Pcpartpicker.com

Error log: had to omit loaded scripts to fit on page

* Detected CPU: Intel(R) Core(TM) i7-8700K CPU @ 4.70GHz [GenuineIntel], F6/M14/S10, 3695.00 mhz, 20-clk ‘rdtsc’
* CPU features: RDTSC, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, HTT
* CPU cores/threads: 6/12

Found commandline file!
Initializing File System…
using fs-ltx fsgame.ltx
File System Ready…
FS: 56960 files cached 66 archives, 11394Kb memory used.
Init FileSystem 1.296847 sec
‘xrCore’ build 8028, Jan 29 2021

EH: 3CAABCFCFF6F3A810019C6A72180F166

——loading f:/anomaly-1.5.1gamedataconfigssystem.ltx [2]
Initializing Engine…
Starting INPUT device…
Loading DLL: xrRender_R4.dll
Available render modes[1]:
[renderer_r4]
command line «f:anomaly-1.5.1binanomalydx11avx.exe» -noprefetch -smap2560 -dbg
Executing config-script «user.ltx»…
[f:/anomaly-1.5.1appdatauser.ltx] successfully loaded.
Loading DLL: xrRender_R4.dll
Loading DLL: xrGame.dll
* [x-ray]: Full Memory Stats
* [win32]: free[137434308468 K], reserved[4415620 K], committed[229320 K]
* [ D3D ]: textures[0 K]
* [x-ray]: process heap[55804 K]
* [x-ray]: economy: strings[43530 K], smem[0 K]
SOUND: OpenAL: enumerate devices…
SOUND: OpenAL: EnumerationExtension Present
dir[1]=F:Anomaly-1.5.1
dir[2]=F:Anomaly-1.5.1bin
dir[3]=C:WINDOWSsystem32
CleanDeviceSpecifierList
CleanDeviceSpecifierList OpenAL Soft
devices OpenAL Soft
SOUND: OpenAL: system default SndDevice name is
SOUND: OpenAL: All available devices:
1. OpenAL Soft, Spec Version 1.1 eax[0] efx[no] xram[no]
Executing config-script «f:/anomaly-1.5.1gamedataconfigsdefault_controls.ltx»…
! Unknown command: g_old_aim
! Unknown command: input_exclusive_mode
[f:/anomaly-1.5.1gamedataconfigsdefault_controls.ltx] successfully loaded.
Executing config-script «user.ltx»…
Executing config-script «f:/anomaly-1.5.1gamedataconfigsrspec_default.ltx»…
[f:/anomaly-1.5.1gamedataconfigsrspec_default.ltx] successfully loaded.
Executing config-script «f:/anomaly-1.5.1gamedataconfigsdefault_controls.ltx»…
! Unknown command: g_old_aim
! Unknown command: input_exclusive_mode
[f:/anomaly-1.5.1gamedataconfigsdefault_controls.ltx] successfully loaded.
[f:/anomaly-1.5.1appdatauser.ltx] successfully loaded.
SOUND: Selected device is OpenAL Soft
* sound: EAX 2.0 extension: absent
* sound: EAX 2.0 deferred: absent
* sound : cache: 524296 kb, 38848 lines, 13820 bpl
Starting RENDER device…
* GPU [vendor:10DE]-[device:1E04]: NVIDIA GeForce RTX 2080 Ti
* CREATE: DeviceREF: 3
* Texture memory: 11048 M
* GPU shading: vs(0/4.0/40), ps(0/4.0/40)
* GPU vertex cache: unrecognized, 24
* NVidia MGPU: Logical(1), Physical(1)
* Starting rendering as 2-GPU.
* DVB created: 4096K
* DIB created: 512K
* HWDST/PCF supported and used
* Managed textures disabled
THM chunk 2072 fixed, wrong size = 39, correct size = 38
THM chunk 2072 fixed, wrong size = 42, correct size = 39
THM chunk 2072 fixed, wrong size = 40, correct size = 45
THM chunk 2072 fixed, wrong size = 36, correct size = 43
THM chunk 2072 fixed, wrong size = 27, correct size = 26
THM chunk 2072 fixed, wrong size = 31, correct size = 30 [2]
THM chunk 2072 fixed, wrong size = 33, correct size = 32
THM chunk 2072 fixed, wrong size = 32, correct size = 27
THM chunk 2073 fixed, wrong size = 22, correct size = 18
THM chunk 2073 fixed, wrong size = 26, correct size = 22
THM chunk 2073 fixed, wrong size = 19, correct size = 25
THM chunk 2073 fixed, wrong size = 19, correct size = 18
THM chunk 2073 fixed, wrong size = 22, correct size = 26
THM chunk 2073 fixed, wrong size = 20, correct size = 34
THM chunk 2073 fixed, wrong size = 19, correct size = 31
THM chunk 2073 fixed, wrong size = 22, correct size = 18
THM chunk 2073 fixed, wrong size = 25, correct size = 27
THM chunk 2073 fixed, wrong size = 27, correct size = 28
THM chunk 2073 fixed, wrong size = 26, correct size = 23
THM chunk 2073 fixed, wrong size = 25, correct size = 24
THM chunk 2073 fixed, wrong size = 19, correct size = 28
THM chunk 2073 fixed, wrong size = 13, correct size = 17
THM chunk 2073 fixed, wrong size = 17, correct size = 30
THM chunk 2072 fixed, wrong size = 28, correct size = 41 [2]
* loading script _G.script
* loading script class_registrator.script
* loading script ui_main_menu.script
* loading script smart_terrain.script
* loading script se_level_changer.script
* loading script se_actor.script
* loading script se_stalker.script
* loading script se_heli.script
* loading script se_zones.script
* loading script se_item.script
* loading script se_smart_cover.script
* loading script se_car.script
* loading script se_artefact.script
* loading script se_monster.script
* loading script sim_squad_scripted.script
* loading script ui_options.script
* loading script utils_xml.script
* loading script axr_main.script
* loading script game_registrator.script
[Discord RPC] Failed to create Discord RPC
* [x-ray]: Starting Main Loop
Starting engine…
intro_start intro_logo
intro_delete ::update_logo_intro
* loading script xrs_dyn_music.script
* loading script xrs_debug_tools.script
* loading script debug_cmd_list.script
* loading script db.script
* loading script actor_proxy.script
* loading script axr_keybind.script
* [x-ray]: Full Memory Stats
* [win32]: free[137431667184 K], reserved[4383048 K], committed[2903176 K]
* [ D3D ]: textures[64 K]
* [x-ray]: process heap[681356 K]
* [x-ray]: economy: strings[43559 K], smem[0 K]
* loading script ui_mm_faction_select.script
* loading script utils_ui.script
* loading script utils_item.script
* loading script utils_data.script

* Loading HOM: f:/anomaly-1.5.1gamedatalevelsk00_marshlevel.hom
! Invalid HOM triangle (-238.000000,11.400609,-238.000000)-(-238.000000,-31.897480,-238.000000)-(-238.000000,-51.897480,-238.000000)
! Invalid HOM triangle (-238.000000,11.400609,-238.000000)-(-238.000000,-51.897480,-238.000000)-(-238.000000,-8.599391,-238.000000)
* phase time: 95 ms
* phase cmem: 1151811 K
* phase time: 82 ms
* phase cmem: 1151805 K
* phase time: 82 ms
* phase cmem: 1151807 K
CResourceManager::DeferredUpload -> START, size = 1605
! Fallback to default bump map: detadeta_00010_bump#
! Fallback to default bump map: detadeta_00010_bump
! Fallback to default bump map: lfolfo_detailsdecail_spidernet_00_bump
! Fallback to default bump map: lfolfo_detailsdecail_spidernet_00_bump#
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_00_bump
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_01_bump#
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_00_bump#
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_02_bump#
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_bump#
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_01_bump
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_03_bump
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_bump
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_03_bump#
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_02_bump
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_full_bump#
! Fallback to default bump map: lfolfo_detailsplantswater_leaves_full_bump
texture loading time: 2282
* t-report — base: 1593, 2163526 K
* t-report — lmap: 12, 12289 K
* phase time: 2756 ms
* phase cmem: 1210890 K
* phase time: 96 ms
* phase cmem: 1210889 K
* [x-ray]: Full Memory Stats
* [win32]: free[137427793340 K], reserved[4716552 K], committed[6443516 K]
* [ D3D ]: textures[2234334 K]
* [x-ray]: process heap[1210889 K]
* [x-ray]: economy: strings[50940 K], smem[6490 K]
# LOADING: level_weather | cycle: clear — preset: w_clear1 — is_underground: false — weather_storage size: 6
-Smart terrains can spawn squads normaly
g_game_difficulty gd_veteran
g_hit_pwr_modif 1
g_dispersion_base 1.3
g_dispersion_factor 1.5
— Water deprivation | Enabled
— Sleep deprivation | Enabled
! Can’t find texture ‘wpnwpn_lens_rakurs’
! Can’t find texture ‘wpnwpn_rakurs_1p76’
! Can’t find texture ‘wpnwpn_lens_greet’
! Can’t find texture ‘propprop_crate_cs’
! Fallback to default bump map: wpnwpn_mount_ak74_dovetail_diff_bump#
! Fallback to default bump map: wpnwpn_weapon_ak74n_diff_bump#
! Fallback to default bump map: wpnwpn_weapon_ak74_kolodka_diff_bump#
! Fallback to default bump map: wpnwpn_weapon_ak74n_bolt_diff_bump#
# LOADING: Ironman mode — Second Wind | Life Granting is off
— Default community: csky
collectgarbage before=48400419Kb
collectgarbage after=30173546Kb
— OCS | Simulate at smarts = ON
! Fallback to default bump map: wpnwpn_scope_pso_1m2-1_lens_bump#
intro_start game_loaded
* [x-ray]: Handled Necessary Textures Destruction
* MEMORY USAGE: 1467028 K
* End of synchronization A[1] R[1]
intro_delete ::update_game_loaded
* Register UI: Dialog
* Register UI: UIInventory
stack trace:

at address 0x00007FFBD22712DE

END ERROR LOG

bump

bump

i am getting ‘at address’ errors too, this didn’t happened to me before i don’t know what going on.

HI! If you use mod organizer 2 with redux 1.0, then you must use this set (at least it working for me and i didnt can fix this same bug too). May be trouble in wrong path to folder. But past save will have mistakes and may be will need start new game.

anomaly

Yeah this shit constantly happens, even on raw Anomaly without addons. There’s no support here for this.

stack trace:
at address 0x00000001409AD9B1

I was getting lots of this errors but some time ago they stopped i don’t know what changed now my game is pretty stable, sometimes i think x ray engine works like some magical stuff lol. I don’t know if this is related at all, but if you changed nvidia settings in the control panel try to set them to default to test, thats the only relevant stuff i remember changing.

I’m also getting random stack trace errors. They mostly happen for me during firefights but sometimes they just happen without me doing anything in particular. I’m also not using any addons or mods. I have a Windows 10, AMD system with a 6900XT and 5900X with 32GB RAM.

[LSS] Spawning object [snork_normal25426][snork_normal][25426]
[LSS] Spawning object [boar_normal25430][boar_normal][25430]
[LSS] Spawning object [sim_default_military_325524][sim_default_military_3][25524]
# LOADING: level_weather | cycle: partly - preset: w_partly1 - is_underground: false - weather_storage size: 1
g_game_difficulty gd_veteran
g_hit_pwr_modif 1
g_dispersion_base 1.3
g_dispersion_factor 1.5
- Water deprivation | Enabled
- Sleep deprivation | Enabled
-Smart terrains can spawn squads normaly
Wrong animpoint smart_cover description animpoint_stay_ohrana, name agr_smart_terrain_1_6_animpoint_camp_14
# LOADING: Ironman mode - Second Wind | Life Granting is off
- Default community: killer
collectgarbage before=41116646Kb
collectgarbage after=27980983Kb
Wrong animpoint smart_cover description animpoint_stay_ohrana, name agr_smart_terrain_1_6_animpoint_camp_14
intro_start game_loaded
* [x-ray]: Handled Necessary Textures Destruction
* MEMORY USAGE: 1542476 K
* End of synchronization A[1] R[1]
intro_delete ::update_game_loaded
- OCS | Full simulation = ON
stack trace:

at address 0x000000014013B9DA

Hello, im having the same issue, im ussing mod but they have no conflict, i dont know from where is the problem

  1. «stack trace:» crash

Same here. It just dumps out:

stack trace:

and nothing else.

And these also, pretty frequently:

stack trace:
[error][ 87] : The parameter is incorrect.
at address 0x0000000140175109

@core23

I use a global config file for multiple projects so I would appreciate if you could suppress this error messages and change the return to code 0 if the analysis has finished.

@IchHabRecht

Same for me. Using one global file and like to collect all possible ignore patterns in that file. Maybe introduce some argument to surpress unused ignore pattern

@ondrejmirtes

Implemented in 0e78f8f. It will be part of next 0.6.x version. Thanks for the suggestion!

@IchHabRecht

Damn, already started to implement it as contribution ;-) Thanks for your work!

@ondrejmirtes

@IchHabRecht So at least know you have the opportunity to evaluate if you were on the right path :)

@hkdobrev

@ondrejmirtes I’d like them to be reported on STDERR, but the exit code to be 0.

This is especially handy when I’ve ignored a couple of errors from levels 4 & 5 when developing locally, but I’m running PHPStan in Travis CI with level 3.

@ondrejmirtes

@hkdobrev I don’t think this is a universal and valid issue. If you’re running PHPStan locally with different settings, you should use a different local config file. We do this often because everyone has different PHP extensions installed locally, so what we end up doing is usually passing a local config file that looks like this: (ignored in git)

includes:
    - phpstan.neon # file used by everyone + the CI build

parameters:
    ignoreErrors:
        - '#Function apcu_[a-zA-Z0-9_]+ does not exist#'

As for the exit code, you can probably achieve that with your own wrapper — execute PHPStan, read its exit code. If it’s > 0, find out, if the only errors reported are the unmatched ignored errors. If yes, return exit code 0, otherwise the original one.

@hkdobrev

@ondrejmirtes

Re the exit code I meant that I’d prefer the exit code to be 0 if the only errors are about unmatched rules. I think this should be the default as this should be warning about configuration and not an actual error detected by PHPStan.

Thank you for the example with an included configuration file, it could help with some future use cases.

However we use a Vagrant box so we don’t have the problem with the extensions. When I ran PHPStan on my host machine with different extensions I used this pattern:

- '#Function geoip_record_by_name (not found|invoked with 1 parameter, 0 required).#'
- '#Function geoip_time_zone_by_country_and_region (not found|invoked with 2 parameters, 0 required).#'

(I guess I should open an issue for these optional arguments to geoip_ functions.)


My suggestion was more about able to commit to the master branch more changes to the configuration file ignoring errors from higher level before going through all of them and be able to safely continue to test the lower level. At the moment we’re forced to either fix everything to level 5 or be stuck with all of the error ignores for high levels to not be on master.

@ondrejmirtes

@hkdobrev You can commit a different config file for a higher level and just run PHPStan with that. Everything gets versioned and is under control.

Please report those geoip issues as reflection bugs to the geoip extension bugtracker :)

I have a strong opinion on strictness and I perceive. I don’t want to differentiate between warnings and errors because from my experience, they are pretty much of the same severity, but warnings get ignored :) That’s why an ignored message that’s not in the result is an error.

@ondrejmirtes

@hkdobrev I just had an idea that this could be improved by the flexibility the custom output formatters would bring. This formatter would accept objects with the information about the analysis results and you could output them any way you’d want to. The custom formatter could also influence the exit code.

@lock
lock
bot

locked as resolved and limited conversation to collaborators

Dec 20, 2019


    • #1
    Server version
    SPT v2.0.0
    Game client version
    0.12.11.2.14290
    Client log file
    codepaste.sp-tarkov.com/?c814b…ixyvyiTbfxVJH8HCwXxPfh6ZA
    Server log file
    codepaste.sp-tarkov.com/?d21cb…F1nzyhysKrGTL1vmH38Cf3CXN
    Have you read the FAQ?
    Yes
    Where did you download your game from?
    BSG Official Installer
    List of used mods
    AssAssIn Olympus v151.2.0.0
    CoreMod : 2.2.0
    AkiConfigurator : 1.4.1
    iDkGK-OnlineRagfair
    Ilhsiek-MuchNeeded
    Kiki-ZaryaKiller
    Nootropix-BigCases
    Nootropix-BigSecureCases
    operator
    Revingly-FoodDrink-Redux
    Senko Mod-Api
    ResponsiveFence
    AdvancedBotLoadouts : 1.5.0
    AllinOneMod : 2.4.0
    BiggerBang

    Once upon a time (I mean till about an hour ago), all of my mods lived in harmony and peace in Tarkov. Since my fleamarket was not updating properly, I tried to make some small changes to the config.json files of mods that touched the flea market. Since that time, I have had nothing but trouble. Everytime, I visit the Fence, all I see is a blank page with circle animation without refreshing Fence offers. I would appreciate the help of you fine folks in helping me continue my Tarkov journey to nowhere.

    Thank you very much for all you do as it has allowed me to enjoy Tarkov.

    Cheers!

  • Jump to the most helpful post

    • #2

    I am pasting the actual trace error from the server here for easy reference.

    [ERROR] Trace:

    TypeError: Cannot read property ‘0’ of undefined

    at Function.generateTraderOffers (D:GamesSPT v2.0.0 — v0.12.11.2.14290objbundle.js:56693:58)

    at Function.update (D:GamesSPT v2.0.0 — v0.12.11.2.14290objbundle.js:56653:23)

    at Function.load (D:GamesSPT v2.0.0 — v0.12.11.2.14290objbundle.js:56600:19)

    at Object.load [as aki-ragfair] (D:GamesSPT v2.0.0 — v0.12.11.2.14290objbundle.js:47693:19)

    at Function.load (D:GamesSPT v2.0.0 — v0.12.11.2.14290objbundle.js:57157:27)

    at Function.main (D:GamesSPT v2.0.0 — v0.12.11.2.14290objbundle.js:46148:9)

    at Object.177../Lib.js (D:GamesSPT v2.0.0 — v0.12.11.2.14290objbundle.js:46153:9)

    at o (D:GamesSPT v2.0.0 — v0.12.11.2.14290objbundle.js:1:265)

    at D:GamesSPT v2.0.0 — v0.12.11.2.14290objbundle.js:1:316

    at Object.261…/Program.js (D:GamesSPT v2.0.0 — v0.12.11.2.14290objbundle.js:55968:1)

    • #3

    to me it looks like the changes you made has borked it, if you remember which ones you changed you could remove that mod for the time being and try without, if it works you narrowed it down to the mod, then it’s replacing with a fresh download of the mod or find and fix what you changed

    • #4

    Thanks CWX — I did try removing the mods and it does work. What I might do is remove AllInOne, OnlineRagfair & Responsive Fence from the folder, play a few raids and then try to add them back hoping it might work. I was thinking that the error might show a simpler way to solving this issue. It might not be the case here.

    • #5

    adding them back after a few raids won’t make a difference, it will error out again, but after saying that I looked again at your server log, the error is with AllinOne from what i can tell, both the other mods load before, then it starts going through the AIO mod and gets the trace error

    • #6

    can you send me your config file for AllinOne mod and i can have a look on my side

    • #7

    Thank you CWX — really appreciate your time here. I have uploaded my Eresh’s AIO config.json file as config. txt (converted using Notepad++); Look forward to getting your thoughts!

    • #8

    no worries, so looks all good from my end, runs fine on my side too, as long as you didn’t go into the src folder and change anything there and you didn’t touch the «CoreMod» dependency.

    we can rule out AIO as an issue,

    next is can you link the config.json of the others you amended?

    and what mods they are for.

    • #9

    As far as I can remember, these are the only other two mods that I touched. Aki Configurator & Ilhsiek-MuchNeeded. AKI — Configurator — config.txt ; Ilhsiek-MuchNeeded — config.txt

    • #10

    so both of those configs are fine too for me, I have downloaded the latest versions to test this, are you using the latest on those three?

    also, did you end out testing your game without the mods? because from what I can see it’s not them causing it


    • Helpful
    • #11

    ok so by chance I started looking at other mods on the forum — Trace Error: Cannot read property ‘0’ of undefined

    this guy was getting «TRACE ERROR: CANNOT READ PROPERTY ‘0’ OF UNDEFINED» from the BiggerBang mod,

    «EnableAllAvailableOffers»: false on the AKI Configurator mod, it was set to true, setting it to false seems to have fixed the problem.

    EDIT — downloaded BiggerBang mod, get the same issue. I’d recommend removing the mod for the time being or live without the EnableAllAvailableOffers being enabled and then hit Thunderbags up in his mod support thread so if there is something he can do to accommodate AKI config. RE: Bigger Bang

    • #12

    Wow! Thank you CWX! I did change that right before the issue started because my online ragfair was not working properly. I disabled that option and the trace error is gone. I should have searched more thoroughly on the forum as well.

    Hope it will come in handy for others having similar problems. Really appreciate your help!

    Mods — Please mark this is solved thanks to CWX!

    • #13

    no worries, might be handy, if you are willing to, hit the bigger bang thread up and let thunderbags know, see if they are able to fix it

    • #14

    Thanks CWX — I just did exactly that. Left a message for Thunderbags with the issue, error message, your solution and asking him to see if there is anything he can do to fix it.

  • kikirio Oct 6th 2021

    Closed the thread.

  • kikirio Oct 6th 2021

    Set the Label from In progress to Solved

  1. 24.04.2016 01:27

    Хорошо, спасибо за советы. Попробуем.

    Также есть такая ошибка: Stray end tag head. С чем она может быть связана?

    • 0
  2. 24.04.2016 23:44

    • 0
  3. 25.04.2016 02:38

    Есть еще такая ошибка: Cannot recover after last error. Any further errors will be ignored. Как ее исправить?

    • 0
  4. 25.04.2016 14:16

    kuzmi4 вне форума

    Гуру Аватар для kuzmi4

    • Репутация: 104
    • Webmoney BL: ?

    Цитата Сообщение от smowin Посмотреть сообщение

    Ну все-таки валидность кода я думаю имеет какое-то значение при ранжировании, хоть и минимальное. Ведь валидный код помагает ПС правильно оценить сайт с технической точки зрения.

    Ога. Проверьте на валидность Яндекс или Гугл.

    • 0
  5. Значок   / Очков: 5

    25.04.2016 15:13

    3s777 вне форума

    Гуру Аватар для 3s777

    • Репутация: 384
    • Webmoney BL: ?

    kuzmi4, как все любят приводить поисковики в пример))
    Дело в том что есть ошибки, которые просто необходимы для нормальной работы проекта, но такие ошибки зачастую никак не вредят ни сайту, ни семантике.
    А есть ошибки по глупости, которые просто необходимо убирать. На примере ТС, в head вписан лишний тег, да поисковик тупо сайт может не индексировать из-за такой мелочи. Альты не прописаны, думаю вы не будете возражать что и они могут помочь в продвижении. И дублирование ссылки вот такой конструкцией<a href=»ссылка»><a href=»ссылка»>и тут анкор</a></a> поисковикам вообще не понравится.
    Поэтому важно следить за валидностью хотя бы чтобы не навредить в продвижении. Да сама валидность мало чем влияет на продвижение, но вот ошибки могут тупо тащить сайт в самый низ.

    • 0
  6. 25.04.2016 16:34

    kuzmi4 вне форума

    Гуру Аватар для kuzmi4

    • Репутация: 104
    • Webmoney BL: ?

    Цитата Сообщение от 3s777 Посмотреть сообщение

    kuzmi4, как все любят приводить поисковики в пример))

    А что не любить то? Это ж наши БОГИ.
    Сам стараюсь сделать код максимально валидным (если возможно и есть время). Зачем? Хочу что сайт выглядел более-менее одинаково во всех (многих) браузерах.
    Все.
    Я не говорю про адские ошибки, которые мешают отображению сайта и препятствуют сканированию ботами ПС.

    ПС. Наличие/отсутствие альтернативного текста к валидации не относиться. Главное что бы у изображения присутствовал атрибут alt (даже пустой)

    • 0

Проверка валидности HTML кода сайта обязательно входит в мой технический аудит. Но не нужно переоценивать значимость ошибок валидации на SEO продвижение — она очень мала. По любой тематике в ТОП будут сайты с большим количеством таких ошибок и прекрасно себе живут.

НО! Отсутствие технических ошибок на сайте является фактором ранжирования, и поэтому пренебрегать такой возможностью не стоит. Лучше исправить, хуже точно не будет. Поисковики увидят ваши старания и дадут маленький плюсик в карму.

Читайте также: кем и когда был введен гипертекст

Как проверить сайт на валидность HTML кода

Проверяется валидация кода сайта с помощью онлайн сервиса W3C HTML Validator. Если есть ошибки, то сервис выдает вам список. Сейчас я разберу самые распространенные типы ошибок, которые я встречал на сайтах.

  • Error: Duplicate ID min_value_62222

Error Duplicate ID min_value_62222

И за этой ошибкой такое предупреждение.

  • Warning: The first occurrence of ID min_value_62222 was here

Warning The first occurrence of ID min_value_62222 was here

Это значит, что дублируется стилевой идентификатор ID, который по правилам валидности html должен быть уникальным. Вместо ID для повторяющихся объектов можно использовать CLASS.

Исправлять это желательно, но не очень критично. Если очень много таких ошибок, то лучше исправить.

Аналогично могут быть еще такие варианты:

  • Error: Duplicate ID placeWorkTimes
  • Error: Duplicate ID callbackCss-css
  • Error: Duplicate ID Capa_1

Следующее очень распространенное предупреждение.

  • Warning: The type attribute is unnecessary for JavaScript resources

Warning The type attribute is unnecessary for JavaScript resources

Это очень частая ошибка при проверке валидации сайта. По правилам HTML5 атрибут type для тега script не нужен, это устаревший элемент.

Аналогично такое предупреждение для стилей:

  • Warning: The type attribute for the style element is not needed and should be omitted

Warning The type attribute for the style element is not needed and should be omitted

Исправлять эти предупреждения желательно, но не критично. При большом количестве лучше исправить.

  • Warning: Consider avoiding viewport values that prevent users from resizing documents

Warning Consider avoiding viewport values that prevent users from resizing documents

Это предупреждение показывает, что нельзя увеличить размер страницы на мобильном или планшете. То есть пользователь захотел посмотреть поближе картинки или очень маленький текст и не может этого сделать.

Я считаю это предупреждение очень нежелательным, для пользователя неудобно, это минус к поведенческим. Устраняется удалением этих элементов — maximum-scale=1.0 и user-scalable=no.

  • Error: The itemprop attribute was specified, but the element is not a property of any item

Error The itemprop attribute was specified, but the element is not a property of any item

Это микроразметка, атрибут itemprop должен находиться внутри элемента с itemscope. Я считаю эту ошибку не критичной и можно оставлять как есть.

  • Warning: Documents should not use about:legacy-compat, except if generated by legacy systems that can’t output the standard doctype

Warning Documents should not use about legacy-compat, except if generated by legacy systems that can't output the standard doctype

Строка about:legacy-compat нужна только для html-генераторов. Здесь нужно просто сделать но ошибка совсем не критичная.

  • Error: Stray end tag source

Error Stray end tag source

Если посмотреть в коде самого сайта и найти этот элемент, видно, что одиночный тег <source> прописан как парный — это не верно.

одиночный тег source

Соответственно, нужно убрать из кода закрывающий тег </source>. Аналогично этой ошибке могут встречаться теги </meta> </input> </noscript>. Эту ошибку нужно исправлять.

  • Error: An img element must have an alt attribute, except under certain conditions. For details, consult guidance on providing text alternatives for images

Error An img element must have an alt attribute, except under certain conditions For details, consult guidance on providing text alternatives for images

Все картинки должны иметь атрибут alt, я считаю эту ошибку критичной, ее нужно исправлять.

  • Error: Element ol not allowed as child of element ul in this context. (Suppressing further errors from this subtree.)

Error Element ol not allowed as child of element ul in this context Suppressing further errors from this subtree

Здесь не верно прописана вложенность тегов. В <ul> должны быть только <li>. В данном примере эти элементы вообще не нужны.

неправильная вложенность тегов

Аналогично могут быть еще такие ошибки:

  • Element h2 not allowed as child of element ul in this context.
  • Element a not allowed as child of element ul in this context.
  • Element noindex not allowed as child of element li in this context.
  • Element div not allowed as child of element ul in this context.

Это все нужно исправлять.

  • Error: Attribute http-equiv not allowed on element meta at this point

Error Attribute http-equiv not allowed on element meta at this point

Атрибут http-equiv не предназначен для элемента meta, нужно убрать его или заменить.

Аналогичные ошибки:

  • Error: Attribute n2-lightbox not allowed on element a at this point.
  • Error: Attribute asyncsrc not allowed on element script at this point.
  • Error: Attribute price not allowed on element option at this point.
  • Error: Attribute hashstring not allowed on element span at this point.

Здесь также нужно или убрать атрибуты n2-lightbox, asyncsrc, price, hashstring или заменить их на другие варианты.

  • Error: Bad start tag in img in head

Error Bad start tag in img in head

Или вот так:

  • Error: Bad start tag in div in head

Error Bad start tag in div in head

Тегов img и div не должно быть в <head>. Эту ошибку нужно исправлять.

  • Error: CSS: Parse Error

Error CSS Parse Error

В данном случае здесь не должно быть точки с запятой после скобки в стилях.

не должно быть точки с запятой в стилях

Ну такая ошибка, мелочь, но не приятно) Смотрите сами, нужно убирать это или нет, на продвижение сайта никакой совершенно роли не окажет.

  • Warning: The charset attribute on the script element is obsolete

Warning The charset attribute on the script element is obsolete

В скриптах уже не нужно прописывать кодировку, это устаревший элемент. Предупреждение не критичное, на ваше усмотрение.

  • Error: Element script must not have attribute charset unless attribute src is also specified

Error Element script must not have attribute charset unless attribute src is also specified

В этой ошибке нужно убрать из скрипта атрибут charset=»uft-8″, так как он показывает кодировку вне скрипта. Я считаю, эту ошибку нужно исправлять.

  • Warning: Empty heading

Warning Empty heading

Здесь пустой заголовок h1. Нужно удалить теги <h1></h1> или поместить между ними заголовок. Ошибка критичная.

  • Error: End tag br

Error End tag br

Тег br одиночный, а сделан как будто закрывающий парный. Нужно убрать / из тега.

одиночный тег br

  • Error: Named character reference was not terminated by a semicolon. (Or & should have been escaped as &.)

Error Named character reference was not terminated by a semicolon

спецсимволы html

Это спецсимволы HTML, правильно нужно писать &copy; или &amp;copy. Лучше эту ошибку исправить.

  • Fatal Error: Cannot recover after last error. Any further errors will be ignored

Fatal Error Cannot recover after last error Any further errors will be ignored

Это серьезная ошибка:

код после html

После </html> ничего вообще не должно быть, так как это последний закрывающий тег страницы. Нужно удалять все, что после него или переносить выше.

  • Error: CSS: right: only 0 can be a unit. You must put a unit after your number

Error CSS right only 0 can be a unit You must put a unit after your number

Нужно значение в px написать:

значения в коде

Вот аналогичная ошибка:

  • Error: CSS: margin-top: only 0 can be a unit. You must put a unit after your number

Error CSS margin-top only 0 can be a unit You must put a unit after your number

  • Error: Unclosed element a

Error Unclosed element a

<a></a> — это парный тег, а здесь он не закрыт, соответственно, нужно закрыть. Ошибку исправлять.

  • Error: Start tag a seen but an element of the same type was already open

Где-то раньше уже был открыт тег <a> и не закрыт, откуда идет следующая ошибка.

  • Error: End tag a violates nesting rules

Здесь отсутствие закрывающего тега </a> нарушает правила вложенности, откуда идет уже фатальная ошибка.

  • Fatal Error: Cannot recover after last error. Any further errors will be ignored

Это частный случай, так конечно нужно смотреть индивидуально.

  • Warning: The bdi element is not supported in all browsers. Please be sure to test, and consider using a polyfill

Warning The bdi element is not supported in all browsers Please be sure to test, and consider using a polyfill

Элемент bdi не поддерживается во всех браузерах, лучше использовать стили CSS, если нужно изменить направления вывода текста. Это не критичное предупреждение.

  • Error: A document must not include both a meta element with an http-equiv attribute whose value is content-type, and a meta element with a charset attribute

Error A document must not include both a meta element with an http-equiv attribute whose value is content-type and a meta element with a charset attribute

Здесь 2 раза указана кодировка:

двойная кодировка

Нужно убрать <meta charset=»UTF-8″ /> в начале. Ошибку лучше исправить.

  • Error: Bad value callto:+7 (473) 263-22-06 for attribute href on element a: Illegal character in scheme data: space is not allowed

Error Bad value callto 7 495 263-22-06 for attribute href on element a Illegal character in scheme data space is not allowed

Здесь запрещены пробелы для атрибута href, нужно писать так — callto:74732632206. Ошибку лучше исправить, но не критично.

  • Error: CSS: max-width: Too many values or values are not recognized

Error CSS max-width Too many values or values are not recognized

И аналогичная ошибка:

  • Error: CSS: max-height: Too many values or values are not recognized

Error CSS max-height Too many values or values are not recognized

В данных случаях для max-width: и max-height: не поддерживается свойство auto. Должно быть конкретное значение в px, % и других единицах измерения для CSS. В целом, эти ошибки не критичные.

  • Error: The for attribute of the label element must refer to a non-hidden form control

Error The for attribute of the label element must refer to a non-hidden form control

Атрибут label должен относиться к фрагменту id с идентификатором «control-label». То есть нужно в код формы вставить кусок id=»control-label». Тоже ошибка не критичная.

id элемент в коде

  • Error: Legacy encoding windows-1251 used. Documents must use UTF-8

Error Legacy encoding windows-1251 used Documents must use UTF-8

Кодировка windows-1251 уже устарела, сейчас везде используется utf-8. По хорошему нужно делать сайт изначально на utf-8, иначе он или отдельные страницы могут отображаться кракозябрами. Но это не критичная ошибка. Если у вас с сайтом все ок, то можно оставить, как есть.

Вот еще похожая ошибка:

  • Error: Bad value text/html; charset=windows-1251 for attribute content on element meta: charset= must be followed by utf-8

Error Bad value text html charset windows-1251 for attribute content on element meta charset must be followed by utf-8

Для атрибута content кодировка должна быть utf-8. Смотрите сами, хотите исправлять это или нет, не критично.

Заключение

После того, как сделана полная проверка, я составляю файл с грубыми ошибками и передаю его моим программистам или технической поддержке клиента. Кстати, почитайте интересную историю, как я искал себе программиста.

Итак, теперь вы знаете, как проверить валидацию сайта с помощью онлайн сервиса W3C HTML Validator, но как я сказал валидность кода далеко не самый важный фактор ранжирования, скорее всего после исправления ошибок вы не заметите существенной разницы в позициях или трафике сайта. Но я считаю, что все равно нужно привести сайт в порядок, и надеюсь, моя статья вам в этом помогла.

0
0
голоса

Рейтинг статьи

Понравилась статья? Поделить с друзьями:
  • Error iduri pas 93 undeclared identifier tidipversion
  • Error idpixelunpackbuffer allocbufferobject allocsize 0
  • Error idnf at lba
  • Error idispatch error 3092
  • Error identifier printf is undefined