WordPress.org

GlotPress

Opened 3 years ago

Closed 14 months ago

#140 closed defect (worksforme)

Unable to import Originals via 'scripts/import-originals.php'

Reported by: mattrude Owned by: somebody
Milestone: Priority: major
Version: 0.1 Component: general
Keywords: Cc: matt@…, sushkov

Description

We are unable to import originals via the script in the scripts directory. The error were getting is:

PHP Fatal error:  Class 'GP_Route_Main' not found in /var/www/translate.mattrude.com/gp-includes/routes/index.php on line 2
PHP Stack trace:
PHP   1. {main}() /var/www/translate.mattrude.com/scripts/import-originals.php:0
PHP   2. require_once() /var/www/translate.mattrude.com/scripts/import-originals.php:2
PHP   3. require_once() /var/www/translate.mattrude.com/gp-load.php:29
PHP   4. require_once() /var/www/translate.mattrude.com/gp-settings.php:290

Attachments (1)

140.patch (317 bytes) - added by mattrude 3 years ago.
Seems to resolve this problem

Download all attachments as: .zip

Change History (6)

comment:1 mattrude3 years ago

  • Cc matt@… added

mattrude3 years ago

Seems to resolve this problem

comment:2 mattrude3 years ago

The above attached patch adds grabs _main.php before updating the GP_Route_Main class.

comment:3 sushkov18 months ago

  • Keywords dev-feedback added
  • Milestone set to 1.0

comment:4 sushkov18 months ago

  • Cc sushkov added

comment:5 markoheijnen14 months ago

  • Keywords dev-feedback removed
  • Milestone 1.0 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

Closing the ticket. Works fine for me. Maybe some code has been changed in the last 2 years that made it work.

Note: See TracTickets for help on using tickets.