Home  >  Article  >  CMS Tutorial  >  What should I do if phpcms cannot collect the URL?

What should I do if phpcms cannot collect the URL?

藏色散人
藏色散人Original
2020-01-07 10:26:592501browse

What should I do if phpcms cannot collect the URL?

What should I do if phpcms cannot collect the URL?

When phpcms collects, it prompts "No URL list found, please collect the URL first". Solution

Newly installed phpcmsV9. After writing the collection rules, click test, the URL can be mentioned, and the article can be extracted. However, when actually collecting the URL, after the URL collection is successful, when collecting the content, it prompts "The URL list was not found, please collect the URL first."

Obviously the URL has been collected. It should be a program problem.

After searching online, it turned out to be a code problem. Modification method:

Modify

phpcms\modules\collection\node.php

line 291

    if (empty($v['url']) || empty($v['title'])) continue;

to

    if (empty($v['url'])) continue;

The reason is that when phpcms collects the URL list and puts it into the database, it also detects the "URL" and "Connection Title" is not empty.

Delete the judgment that "the detection title is empty".

Then the test is successful.

I saw someone on the Internet saying that the change was still unsuccessful. The actual thing is that you extracted the URL, and in the database, it no longer extracts the URL repeatedly, resulting in "no URL extraction this time." The solution is to

Clear the contents of the v9_collection_history table. You can re-extract the URL.

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of What should I do if phpcms cannot collect the URL?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn