Problem with the Test Links

General questions about CMSimple
sbastian
Posts: 20
Joined: Tue May 17, 2016 11:17 am
Location: France
Contact:

Problem with the Test Links

Post by sbastian » Sat Jan 25, 2025 9:24 am

Hello,

The results of the "Test links" are correct, except for links to official websites like .gouv.fr for example (it is a site of car-school).
The links are provided in error (while these links are perfectly valid) instead of nothing or note (at worst)

My log is very long to read and it becomes difficult to "track" the mistakes, especially when they are unjustified...

Is there a solution to "whiten" certain addresses so as not to be embarrassed with the "Test Links"

With my great thanks,

Stéphane

olape
Posts: 3317
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Problem with the Test Links

Post by olape » Sat Jan 25, 2025 9:42 am

For that I would have to see the log.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

sbastian
Posts: 20
Joined: Tue May 17, 2016 11:17 am
Location: France
Contact:

Re: Problem with the Test Links

Post by sbastian » Sat Jan 25, 2025 10:43 am

I don't know where to retrieve the log of the Test Links in cmsimple_xh...

below : copy paste of on-screen data to a txt file and then zip

Friendly, Stéphane
You do not have the required permissions to view the files attached to this post.

olape
Posts: 3317
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Problem with the Test Links

Post by olape » Sat Jan 25, 2025 4:14 pm

You can go to the XH settings at the bottom under "more",
to specify how many redirects the link check should follow.
First set it to 1.
Then the messages with 301 or 302 should be gone.

There you can also set that mailto or tel links are taken into account.

Then see what's left.

In the case of errors where the statement is "the domain does not exist", I would suspect a DNS problem with the server.
To test this, you could run a copy of the page locally and run the link check there.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

sbastian
Posts: 20
Joined: Tue May 17, 2016 11:17 am
Location: France
Contact:

Re: Problem with the Test Links

Post by sbastian » Sat Jan 25, 2025 4:50 pm

Actually with the parameter to 1, there are no more errors...

I am attaching also the debug-log when you start the test links...

It's still not cool...

Stef
You do not have the required permissions to view the files attached to this post.

olape
Posts: 3317
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Problem with the Test Links

Post by olape » Sat Jan 25, 2025 6:12 pm

Code: Select all

Failed to open stream: HTTP request failed! - /home/vindretcwy/www/cmsimple/classes/LinkChecker.php:314
It is always the same error.
Only, nothing has been changed in the link check in 1.8.
The only thing is that you can see the error in the debug log.

Basically, my statement remains: the server cannot access the domain.
DNS, perhaps also firewall?

Try a local copy and see if the error appears there too!
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

sbastian
Posts: 20
Joined: Tue May 17, 2016 11:17 am
Location: France
Contact:

Re: Problem with the Test Links

Post by sbastian » Sat Jan 25, 2025 10:00 pm

uh...

My question may be silly but how do you run a local copy ? on an apache installed locally ?

I don't have it on my PC ?

Can you introduce me, PLEASE ?

Stef

Tata
Posts: 3628
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Problem with the Test Links

Post by Tata » Sun Jan 26, 2025 8:31 am

You must have installed a local server.
E.g.
https://www.apachefriends.org/ for Windows
https://www.mamp.info/en/mac/ for MAC
Then you can run any website (copy) locally.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

sbastian
Posts: 20
Joined: Tue May 17, 2016 11:17 am
Location: France
Contact:

Re: Problem with the Test Links

Post by sbastian » Sun Jan 26, 2025 5:12 pm

Thank you Tata for the info Xampp.

Still, I struggled for many hours before I see my site in local !!!
security issues already with the install, and then the parameters of the communication port, and finally with the SSL ! (not https, and disabling my .htaccess...)

Once you overcome all the obstacles, Xampp is very nice...
Thank you again !

Because it is thanks to Xampp that I could see that the idea of Olape was good ("I would suspect a DNS problem with the server...") locally I only have 1 error and 2 notes...

Thank you Olape for your insight !
What can I do now on my DNS OVH, so you will not have these dozens of errors unjustified, with the test links ?

I am a bit bewildered !

olape
Posts: 3317
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Problem with the Test Links

Post by olape » Mon Jan 27, 2025 7:14 am

sbastian wrote:
Sun Jan 26, 2025 5:12 pm
Still, I struggled for many hours before I see my site in local !!!
security issues already with the install, and then the parameters of the communication port, and finally with the SSL ! (not https, and disabling my .htaccess...)
👍
sbastian wrote:
Sun Jan 26, 2025 5:12 pm
I could see that the idea of Olape was good ("I would suspect a DNS problem with the server...")
That's just a suspicion. There are certainly other explanations for this behavior.

Test this:
curl_test.php

Only change the last five lines, one line at a time without comment characters //
and call up the file.

If the result is: "6 - Couldn't resolve host name" as with "https://cmsimplexh.webdesign-keil.de/" ?

Code: Select all

<?PHP

ini_set( 'display_errors', 1 );
error_reporting( E_ALL );

function curl_test($Url) {

    if (!function_exists('curl_init')){
            die('Sorry cURL is not installed!');
    }

    $agent = ($_SERVER['SERVER_NAME'] ? $_SERVER['SERVER_NAME'] . ' ' : '')
           . 'cURL-Test';
 
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $Url);
    curl_setopt($ch, CURLOPT_USERAGENT, $agent);
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 5);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
    curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_MAXREDIRS, 2);
    $output = (curl_exec($ch) !== false
                    ? curl_getinfo($ch)
                    : curl_errno($ch)
                      . ' - '
                      . curl_strerror(curl_errno($ch))
               );
    curl_close($ch);

    return $output;
}

/* -----------------------------------------------------------------------*/

var_dump(curl_test('https://cmsimplexh.webdesign-keil.de/')); //no longer exists

//var_dump(curl_test('https://www.soluxiane.fr/'));

//var_dump(curl_test('http://www.securite-routiere.gouv.fr/'));

//var_dump(curl_test('https://www.haute-savoie.gouv.fr/'));

//var_dump(curl_test('http://www.ain.gouv.fr/'));

Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

Post Reply