Get file size of file URLs automatically does not work anymore

More
8 years 5 months ago #69485 by ggppdk
Hello

i checked it seems that no errors were return by URLs file indexing

Also if a URLs is found but it returns zero files then this is not considered an error

These errors are logged:
Code:
$headers = @ get_headers($url, 1); $error_msg = error_get_last();


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #69486 by ggppdk
Hello

but i will check it more


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #69487 by ggppdk
Hello

a typical exaple of an error is
- bad format URLs

the above will be logged as an error

But a 404 error (not found URL) will not return an error
- we should add this case as an error too ...


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago - 8 years 5 months ago #69488 by lipatovroman
Ok. I made an experiment.
I renamed file on my second domain and recheck indexes.
Now message displays and I found file filemanager_index_stats_960.php in logs folder.
But it does not contains any data about this missed file.
Besides, as I already wrote several files can't update sizes (now they are zero) in automatic mode.
Only if I manually opens this files and save again - in this case size updates correct.
Last edit: 8 years 5 months ago by lipatovroman.

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #69489 by ggppdk
Hello

please clarify this

Indexer cannot update file sizes of some files ?

or

Indexer cannot update file sizes of some URLs ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago - 8 years 5 months ago #69490 by lipatovroman
Indexer cannot update file sizes of some DIRECT URLs for files from another domain.
But updates sizes in manual mode.
Last edit: 8 years 5 months ago by lipatovroman.

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #69492 by ggppdk
Hello

i found an issue

sometimes the redirections instead of being returned one by one

they are returned as an array
in this case we need to use the last one

this breaks the indexer thus maybe the indexing does not complete for all URLs
i am testing a fix


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #69493 by lipatovroman
Here short video how it goes:

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #69494 by ggppdk
Hello

ok, i found a 2nd issue , i am making a fix

the indexer in some cases it will use empty string as URL
thus no file size is retrieved


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago - 8 years 5 months ago #69496 by ggppdk
Hello

it should be ok now

all URLs that can be calculated (e.g. some of your URLs are not files) are now calculated by the indexer

[EDIT]
your website has the fix, it has been updated to:
github.com/FLEXIcontent/flexicontent-cck...ive/3.2.x-stable.zip


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!
Last edit: 8 years 5 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save