Generate: Debugging Issues

At times,Page Generator Pro may not produce the results that you expect.

Before opening a support request, please follow all of the below common issues, making changes as necessary.

200 OK errors on Generation

This is caused by WordPress, or a third party plugin, outputting PHP warnings, notices or errors in the response received from the generation process.

To debug:

  1. Add /replace the following lines in your wp-config.php file:
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
  2. Run the generation process again
  3. Inspect the log file at wp-content/debug.log, noting any messages that appear.
  4. If the messages mention other Plugins, please work with those Plugin developers to resolve.
  5. If the messages mention our Plugin, review the below common issues.

200 parseerror on Generation

This is caused by WordPress, or a third party plugin, outputting PHP warnings, notices or errors in the response received from the generation process.

To debug:

  1. Add /replace the following lines in your wp-config.php file:
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
  2. Run the generation process again
  3. Inspect the log file at wp-content/debug.log, noting any messages that appear.
  4. If the messages mention other Plugins, please work with those Plugin developers to resolve.
  5. If the messages mention our Plugin, review the below common issues.

See section Certain characters do not display correctly

404 error on Generation

This is typically caused by your web host blocking multiple requests to wp-admin/admin-ajax.php.  Generate via Browser makes a call to this endpoint for each generated item in the generation process.

To resolve:

500 Internal Server Error on Generation

Enable all of the following Plugin settings:

If the issue persists on generation once all of the above steps have been followed:

503 Service Unavailable

Enable all of the following Plugin settings:

If the issue persists on generation once all of the above steps have been followed:

The Group’s Status must be set to one of Private, Publish for Generation to function correctly

The Content Group must be published.  Refer to the Documentation:
https://www.wpzinc.com/documentation/page-generator-pro/generate-content/#save​

Generation Stops without full completion

See Docs, noting options available to generate in batches via use of the Resume Index and Number of Post options:
https://www.wpzinc.com/documentation/page-generator-pro/generate-content/#fields–generation

The same Page continues to be generated over and over again

The Permalink defined in the Content Group must be unique.

Refer to the Documentation, section Permalinks:
https://www.wpzinc.com/documentation/page-generator-pro/generate-content/

Specifically, note:

When specifying a Permalink, it must be unique for each generated Page.  If it is not, existing generated Pages will be overwritten.

Two options are available:

  1. Define a dynamic Permalink by using keywords, ensuring that the output for each generated Page will always produce a unique slug,
  2. Leave the Permalink field blank, allowing WordPress to generate a unique, non-overwriting Permalink based on the Title.

For example:

  • https://yoursite.com/generated-page
  • https://yoursite.com/generated-page-2
  • https://yoursite.com/generated-page-3
  • https://yoursite.com/generated-page-4

To resolve:

Millions of Pages are Generated, when I only expected Thousands of Pages

Assuming two keywords are used, each with 1,000 terms:

  • If your expectation is that 1,000,000 Pages be produced (that is, every single possible unique combination of keywords are used), ensure that the Content Group’s Method is set to All.
  • If your expectation is that 1,000 Pages be produced (that is, keyword terms are used on a sequential, one to one basis), ensure that the Content Group’s Method is set to Sequential.

Refer to the detailed Documentation, which explains precisely how Generation Methods work:
https://www.wpzinc.com/documentation/page-generator-pro/generate-methods/

Certain characters do not display correctly

If you’re using characters such as Ä and Ö, and they do not display correctly on generated content (or content does not display at all), there is a misconfiguration in your WordPress and/or database configuration.  You must verify that:

  1. Your MySQL database tables encoding is set to UTF-8 Unicode (utf8mb4).  Confirm this by viewing each WordPress database table information in your database editor (such as phpMyAdmin or Sequel Pro):
    Page Generator Pro: Debugging Issues: Database Settings
  2. Your MySQL database tables collation is set to utf8mb4 (ideally, utf8mb4_general_ci).  Confirm this by viewing each WordPress database table information in your database editor (such as phpMyAdmin or Sequel Pro):
    Page Generator Pro: Debugging Issues: Database Settings
  3. Your WordPress database character set is set to utf8mb4.  Confirm this by editing your wp-config.php file, noting the below setting:
    Page Generator Pro: Debugging Issues: wp-config Settings
  4. Your WordPress database collate set is blank. Confirm this by editing your wp-config.php file, noting the below setting:
    Page Generator Pro: Debugging Issues: wp-config Settings

Mixing database encoding, collation and WordPress’ database character set will result in content issues not just for Page Generator Pro, but for other plugins and content in general.