[DBTech] DragonByte SEO URLs to XenForo 2

[DBTech] DragonByte SEO URLs to XenForo 2 1.2.0

No permission to download
@DragonByte Tech Interestingly, I'm getting the same error on another install. However, this one is running a newer version:

Code:
| _vboptimise_dbtech        | DragonByte Tech: vBOptimise (Pro)                | 2.7.1      |
| dbtech_dbseo              | DragonByte Tech: SEO (Pro)                       | 2.0.43     |

Code:
In Url.php line 868:
                                                                                     
  [ErrorException]                                                                   
  [E_WARNING] Undefined array key "dbtech_dbseo_rewrite_rule_attachment_attachment"  
                                                                                     

Exception trace:
  at /staging/forums/src/addons/DBTech/Redirect/Util/Url.php:868
 XF::handlePhpError() at /staging/forums/src/addons/DBTech/Redirect/Util/Url.php:868
 DBTech\Redirect\Util\Url::prepareUrls() at /staging/forums/src/addons/DBTech/Redirect/Import/Importer/DragonByteSeo.php:333
 DBTech\Redirect\Import\Importer\DragonByteSeo->stepUrls() at /staging/forums/src/XF/Import/Runner.php:242
 XF\Import\Runner->runStep() at /staging/forums/src/XF/Import/Runner.php:59
 XF\Import\Runner->run() at /staging/forums/src/XF/Import/Runner.php:152
 XF\Import\Runner->runUntilCompleteInternal() at /staging/forums/src/XF/Import/Runner.php:128
 XF\Import\Runner->runUntilComplete() at /staging/forums/src/XF/Cli/Command/Import.php:155
 XF\Cli\Command\Import->execute() at /staging/forums/src/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /staging/forums/src/vendor/symfony/console/Application.php:992
 Symfony\Component\Console\Application->doRunCommand() at /staging/forums/src/vendor/symfony/console/Application.php:255
 Symfony\Component\Console\Application->doRun() at /staging/forums/src/vendor/symfony/console/Application.php:148
 Symfony\Component\Console\Application->run() at /staging/forums/src/XF/Cli/Runner.php:109
 XF\Cli\Runner->run() at /staging/forums/cmd.php:15

xf:import [--processes PROCESSES] [--finalize]
 
All I know is that's the version it is running and I'm still getting the error even though their vBulletin site is still running fine. Sadly not familiar enough with the plugin to know what should / shouldn't be there other than that. We'll figure it out I guess
 
@DragonByte Tech

Xenforo 2.2.7 Patch 1

I ran the XF vb4 importer which completed successfully.

However, when I try to run the import for Dragonbyte SEO I get this:

Code:
ErrorException: [E_WARNING] Undefined array key "dbtech_dbseo_rewrite_rule_attachment_attachment" in src/addons/DBTech/Redirect/Util/Url.php at line 868

    XF::handlePhpError() in src/addons/DBTech/Redirect/Util/Url.php at line 868
    DBTech\Redirect\Util\Url::prepareUrls() in src/addons/DBTech/Redirect/Import/Importer/DragonByteSeo.php at line 333
    DBTech\Redirect\Import\Importer\DragonByteSeo->stepUrls() in src/XF/Import/Runner.php at line 244
    XF\Import\Runner->runStep() in src/XF/Import/Runner.php at line 61
    XF\Import\Runner->run() in src/XF/Admin/Controller/Import.php at line 234
    XF\Admin\Controller\Import->actionRun() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2345
    XF\App->run() in src/XF.php at line 512
    XF::runApp() in admin.php at line 13

Full test from the ACP server errors log:

Code:
Server error log

    ErrorException: [E_WARNING] Undefined array key "dbtech_dbseo_rewrite_rule_attachment_attachment" src/addons/DBTech/Redirect/Util/Url.php:868

    Generated by: djbaxter Nov 13, 2021 at 2:19 PM

Stack trace

#0 src/addons/DBTech/Redirect/Util/Url.php(868): XF::handlePhpError(2, '[E_WARNING] Und...', '/var/www/drumsm...', 868)
#1 src/addons/DBTech/Redirect/Import/Importer/DragonByteSeo.php(333): DBTech\Redirect\Util\Url::prepareUrls(Array)
#2 src/XF/Import/Runner.php(244): DBTech\Redirect\Import\Importer\DragonByteSeo->stepUrls(Object(XF\Import\StepState), Array, 8)
#3 src/XF/Import/Runner.php(61): XF\Import\Runner->runStep('urls', Object(XF\Import\StepState), 8)
#4 src/XF/Admin/Controller/Import.php(234): XF\Import\Runner->run()
#5 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Import->actionRun(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Import', 'Run', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#10 src/XF.php(512): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}

Request state

array(4) {
  ["url"] => string(21) "/admin.php?import/run"
  ["referrer"] => string(45) "https://www.{domain}.com/admin.php?import/"
  ["_GET"] => array(1) {
    ["import/run"] => string(0) ""
  }
  ["_POST"] => array(1) {
    ["_xfToken"] => string(8) "********"
  }
}

Any suggestions on how to fix this?
 
Last edited:
@DragonByte Tech

Xenforo 2.2.7 Patch 1

I ran the XF vb4 importer which completed successfully.

However, when I try to run the import for Dragonbyte SEO I get this:

Code:
ErrorException: [E_WARNING] Undefined array key "dbtech_dbseo_rewrite_rule_attachment_attachment" in src/addons/DBTech/Redirect/Util/Url.php at line 868

    XF::handlePhpError() in src/addons/DBTech/Redirect/Util/Url.php at line 868
    DBTech\Redirect\Util\Url::prepareUrls() in src/addons/DBTech/Redirect/Import/Importer/DragonByteSeo.php at line 333
    DBTech\Redirect\Import\Importer\DragonByteSeo->stepUrls() in src/XF/Import/Runner.php at line 244
    XF\Import\Runner->runStep() in src/XF/Import/Runner.php at line 61
    XF\Import\Runner->run() in src/XF/Admin/Controller/Import.php at line 234
    XF\Admin\Controller\Import->actionRun() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2345
    XF\App->run() in src/XF.php at line 512
    XF::runApp() in admin.php at line 13

Full test from the ACP server errors log:

Code:
Server error log

    ErrorException: [E_WARNING] Undefined array key "dbtech_dbseo_rewrite_rule_attachment_attachment" src/addons/DBTech/Redirect/Util/Url.php:868

    Generated by: djbaxter Nov 13, 2021 at 2:19 PM

Stack trace

#0 src/addons/DBTech/Redirect/Util/Url.php(868): XF::handlePhpError(2, '[E_WARNING] Und...', '/var/www/drumsm...', 868)
#1 src/addons/DBTech/Redirect/Import/Importer/DragonByteSeo.php(333): DBTech\Redirect\Util\Url::prepareUrls(Array)
#2 src/XF/Import/Runner.php(244): DBTech\Redirect\Import\Importer\DragonByteSeo->stepUrls(Object(XF\Import\StepState), Array, 8)
#3 src/XF/Import/Runner.php(61): XF\Import\Runner->runStep('urls', Object(XF\Import\StepState), 8)
#4 src/XF/Admin/Controller/Import.php(234): XF\Import\Runner->run()
#5 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Import->actionRun(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Import', 'Run', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#10 src/XF.php(512): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}

Request state

array(4) {
  ["url"] => string(21) "/admin.php?import/run"
  ["referrer"] => string(45) "https://www.{domain}.com/admin.php?import/"
  ["_GET"] => array(1) {
    ["import/run"] => string(0) ""
  }
  ["_POST"] => array(1) {
    ["_xfToken"] => string(8) "********"
  }
}

Any suggestions on how to fix this?
What version of DBSEO were you importing from?
 
@DragonByte Tech

Upgraded to Dragonbyte SEO v2.0.40.

Ran the Xenforo importer for vBulletin 4. That completed with no errors.

Tried to run the Dragonbyte SEO importer. Error:

Code:
ErrorException: [E_WARNING] Undefined array key "dbtech_dbseo_rewrite_rule_attachment_attachment" in src/addons/DBTech/Redirect/Util/Url.php at line 868

    XF::handlePhpError() in src/addons/DBTech/Redirect/Util/Url.php at line 868
    DBTech\Redirect\Util\Url::prepareUrls() in src/addons/DBTech/Redirect/Import/Importer/DragonByteSeo.php at line 333
    DBTech\Redirect\Import\Importer\DragonByteSeo->stepUrls() in src/XF/Import/Runner.php at line 244
    XF\Import\Runner->runStep() in src/XF/Import/Runner.php at line 61
    XF\Import\Runner->run() in src/XF/Admin/Controller/Import.php at line 234
    XF\Admin\Controller\Import->actionRun() in src/XF/Mvc/Dispatcher.php at line 352
    XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
    XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
    XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
    XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2345
    XF\App->run() in src/XF.php at line 512
    XF::runApp() in admin.php at line 13

Errors from ACP:

Code:
Server error log    
[LIST]
[*]ErrorException: [E_WARNING] Undefined array key "dbtech_dbseo_rewrite_rule_attachment_attachment"               
[*]src/addons/DBTech/Redirect/Util/Url.php:868         
[*]Generated by: admin        
[*]Nov 30, 2021 at 7:53 AM             
[/LIST]
[HEADING=2]Stack trace[/HEADING]
#0 src/addons/DBTech/Redirect/Util/Url.php(868): XF::handlePhpError(2, '[E_WARNING] Und...', '/var/www/forums...', 868)
#1 src/addons/DBTech/Redirect/Import/Importer/DragonByteSeo.php(333): DBTech\Redirect\Util\Url::prepareUrls(Array)
#2 src/XF/Import/Runner.php(244): DBTech\Redirect\Import\Importer\DragonByteSeo->stepUrls(Object(XF\Import\StepState), Array, 8)
#3 src/XF/Import/Runner.php(61): XF\Import\Runner->runStep('urls', Object(XF\Import\StepState), 8)
#4 src/XF/Admin/Controller/Import.php(234): XF\Import\Runner->run()
#5 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Import->actionRun(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Import', 'Run', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#10 src/XF.php(512): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}       
[HEADING=2]Request state[/HEADING]
array(4) {
  ["url"] => string(21) "/admin.php?import/run"
  ["referrer"] => string(55) "https://{domain}.com/admin.php?import/start"
  ["_GET"] => array(1) {
    ["import/run"] => string(0) ""
  }
  ["_POST"] => array(1) {
    ["_xfToken"] => string(8) "********"
  }
}
 
Last edited:
In that case that might be a Pro-only feature being referenced. If you don't have the Pro version, feel free to DM me your username @ DBTech and I'll assign you a license :)
 
I've been playing around with this all afternoon and I can't get the attachments to rewrite, I've checked the URL formats file and there is no attachment section in it.

Any ideas?
 
I've been having another go at this today without success, does anybody have a generated copy of urlFormats.php with the attachment section in that I could have a look at?
 
Hello,
Using vb 4.2.5 and dbseo 2.0.43
@DragonByte Tech can you help me with below error ?

I am getting below error on importing :

ErrorException: [E_WARNING] Undefined array key "dbtech_dbseo_rewrite_rule_attachment_attachment" in src/addons/DBTech/Redirect/Util/Url.php at line 868
  1. XF::handlePhpError() in src/addons/DBTech/Redirect/Util/Url.php at line 868
  2. DBTech\Redirect\Util\Url::prepareUrls() in src/addons/DBTech/Redirect/Import/Importer/DragonByteSeo.php at line 333
  3. DBTech\Redirect\Import\Importer\DragonByteSeo->stepUrls() in src/XF/Import/Runner.php at line 244
  4. XF\Import\Runner->runStep() in src/XF/Import/Runner.php at line 61
  5. XF\Import\Runner->run() in src/XF/Admin/Controller/Import.php at line 234
  6. XF\Admin\Controller\Import->actionRun() in src/XF/Mvc/Dispatcher.php at line 352
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2352
  11. XF\App->run() in src/XF.php at line 524
  12. XF::runApp() in admin.php at line 13
 
I have dbseo for vbulletin installed, will i require this modification on new xenforo install ?
Kindly suggest any important steps to take care about..
 
I have dbseo for vbulletin installed, will i require this modification on new xenforo install ?
Kindly suggest any important steps to take care about..
If you wish to redirect your old URLs, you will need this add-on, yes. Please make sure you read the FAQ for this add-on as well.
 
I am stuck at this error as well. Currently using v 2.4+.

  • ErrorException: [E_WARNING] Undefined array key "dbtech_dbseo_rewrite_rule_attachment_attachment"
  • src/addons/DBTech/Redirect/Util/Url.php:868

I can fix the output error via editing the offending line with

$optionValue = $settings[$optionKey] ?? "";

But zero urls are imported;

+----------------+-------+------------+
| Step | Total | Time taken |
+----------------+-------+------------+
| URLs | 0 | 0 seconds |
+----------------+-------+------------+
| Total run time | 0 seconds |
+----------------+-------+------------+


Suggestions are welcomed.

Update: a quicker fix is just to revert from php 8.x to 7.x - which bypasses the error. I think there may have been an error with the import possibly for the conversion and so 0 links is provided, I am going to reimport the database and start again.
 
Last edited:
Top Bottom