Skip to content

Instantly share code, notes, and snippets.

[edward@eddarch StockRoom]$ DBIC_TRACE=1 prove -l t/model_StockDB.t
t/model_StockDB.t .. 1/? SELECT COUNT( * ) FROM tbl_stock me:
Use of uninitialized value $_[2] in string eq at /home/edward/perl5/lib/perl5/DBIx/Class/ResultSet.pm line 2097.
Use of uninitialized value $_[2] in string eq at /home/edward/perl5/lib/perl5/DBIx/Class/ResultSet.pm line 2097.
bless( {
current_page => 1,
entries_per_page => 10,
undef => undef
}, 'Data::Page' )
t/model_StockDB.t .. ok
[edward@eddarch StockRoom]$ DBIC_TRACE=1 prove -l t/model_StockDB.t
t/model_StockDB.t .. 1/? SELECT COUNT( * ) FROM tbl_stock me:
Use of uninitialized value $_[2] in string eq at /home/edward/perl5/lib/perl5/DBIx/Class/ResultSet.pm line 2097.
Use of uninitialized value $_[2] in string eq at /home/edward/perl5/lib/perl5/DBIx/Class/ResultSet.pm line 2097.
bless( {
current_page => 1,
entries_per_page => 10,
undef => undef
}, 'Data::Page' )
t/model_StockDB.t .. ok
[edward@eddarch StockRoom]$ DBIC_TRACE=1 perl -I lib t/model_StockDB.t
ok 1 - use StockRoom::Model::StockDB;
SELECT COUNT( * ) FROM tbl_stock me:
Use of uninitialized value $_[2] in string eq at /home/edward/perl5/lib/perl5/DBIx/Class/ResultSet.pm line 2097.
Use of uninitialized value $_[2] in string eq at /home/edward/perl5/lib/perl5/DBIx/Class/ResultSet.pm line 2097.
bless( {
current_page => 1,
entries_per_page => 10,
undef => undef
}, 'Data::Page' )
SELECT COUNT( * ) FROM tbl_stock me:
Use of uninitialized value $_[2] in string eq at /home/edward/perl5/lib/perl5/DBIx/Class/ResultSet.pm line 2097.
Use of uninitialized value $_[2] in string eq at /home/edward/perl5/lib/perl5/DBIx/Class/ResultSet.pm line 2097.
bless( {
current_page => 1,
entries_per_page => 10,
undef => undef
}, 'Data::Page' )
t/model_StockDB.t ..
ok 1 - use StockRoom::Model::StockDB;
SELECT COUNT( * ) FROM tbl_stock me:
Use of uninitialized value $_[2] in string eq at /home/edward/perl5/lib/perl5/DBIx/Class/ResultSet.pm line 2097.
Use of uninitialized value $_[2] in string eq at /home/edward/perl5/lib/perl5/DBIx/Class/ResultSet.pm line 2097.
bless( {
current_page => 1,
entries_per_page => 10,
undef => undef
}, 'Data::Page' )
{
"/usr/lib/perl5/core_perl/auto/Storable/autosplit.ix" => "/usr/lib/perl5/core_perl/auto/Storable/autosplit.ix",
package StockRoom::Controller::Root;
use Moose;
use namespace::autoclean;
BEGIN { extends 'Catalyst::Controller' }
with 'Catalyst::TraitFor::Controller::DBIC::DoesPaging';
#
# Sets the actions in this controller to be registered with no prefix
# so they function identically to actions created in MyApp.pm
PHP Fatal error: Uncaught SoapFault exception: [1] SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`37m/mgcatalog_product_entity`, CONSTRAINT `FK_CATALOG_PRODUCT_ENTITY_ATTRIBUTE_SET_ID` FOREIGN KEY (`attribute_set_id`) REFERENCES `mgeav_attribute_set` (`attribute_set_id`) ON DELETE CASCADE) in /home/edward/Projects/37m/magento-tools/build_cat.php:108
Stack trace:
#0 /home/edward/Projects/37m/magento-tools/build_cat.php(108): SoapClient->__call('call', Array)
#1 /home/edward/Projects/37m/magento-tools/build_cat.php(108): SoapClient->call('490b836f5cdb6ca...', 'product.create', Array)
#2 {main}
thrown in /home/edward/Projects/37m/magento-tools/build_cat.php on line 108
#!/usr/bin/env php
<?php
include_once ('magento_keys.php');
function get_root_category_id ($default_categories){
global $session_id, $proxy;
if($default_categories['name'] == 'Root Catalog'){
if($default_categories['children'][0]['name'] == 'Default Category'){
print "Found root category.\n";
return $default_categories['children'][0]['category_id'];
Format-List : Exception has been thrown by the target of an invocation.
At line:1 char:9
+ $sp | FL <<<<
+ CategoryInfo : NotSpecified: (:) [Format-List], TargetInvocatio
nException
+ FullyQualifiedErrorId : System.Reflection.TargetInvocationException,Micr
osoft.PowerShell.Commands.FormatListCommand
0088200: 456e 676c 6973 6822 0a22 4c65 6f20 4465 English"."Leo De
0088210: 6c69 6265 733a 2056 616c 7365 204c 656e libes: Valse Len
0088220: 7465 6e22 2c22 736d 645f 3030 3035 3933 ten","smd_000593
0088230: 222c 312e 352c 224d 4c43 3a3a 4d65 6c6f ",1.5,"MLC::Melo
0088240: 6479 204c 696e 652c 204c 7972 6963 7320 dy Line, Lyrics
0088250: 2620 4368 6f72 6473 222c 2252 6f6d 616e & Chords","Roman
0088260: 7469 632c 2043 6c61 7373 6963 616c 222c tic, Classical",
0088270: 2244 656c 6962 6573 2c20 4c65 6f22 2c22 "Delibes, Leo","