Support forums

Please check @brandnewbox_uk for support status updates.

Search     Advanced Search

   
Getting error when trying to import from an template with the run_saved_import tag in it  
Posted: 01 August 2017 04:12 PM —   [ Ignore ]  
Newbie
Rank
Total Posts:  2
Joined  2017-08-01

I have a saved import and want to have my client browse to a URL with the run_saved_import tag within it to start a new import of a CSV file they have uploaded.

I have my template setup like below…

{if logged_in}

<h1>Importingone moment please</h1>

{exp:ajw_datagrab:run_saved_import id="1"}

{if
:else}

{redirect
='beer-search' status_code="301"}

{
/if} 

When I browse to the URL it throws an error.  I have pasted the error below. Any help would be great as this functionality is supposed to be finished by end of week. Thanks!


Exception Caught
No such property: ‘cp’ on EllisLab\ExpressionEngine\Legacy\Facade
ee/EllisLab/ExpressionEngine/Legacy/Facade.php:107
Stack Trace: hide details

#0 ee/EllisLab/ExpressionEngine/Legacy/Facade.php(22): EllisLab\ExpressionEngine\Legacy\Facade->get(‘cp’)
#1 user/addons/ajw_datagrab/fieldtypes/datagrab_gmaps_data.php(134): EllisLab\ExpressionEngine\Legacy\Facade->__get(‘cp’)
#2 user/addons/ajw_datagrab/models/datagrab_model.php(526): Datagrab_gmaps_data->final_post_data(Object(Datagrab_model), Array, 42, ‘location_data’, Array, 63)
#3 user/addons/ajw_datagrab/mod.ajw_datagrab.php(155): Datagrab_model->do_import(Object(Ajw_csv), Array)
#4 ee/legacy/libraries/Template.php(1651): Ajw_datagrab->run_saved_import()
#5 ee/legacy/libraries/Template.php(1304): EE_Template->process_tags()
#6 ee/legacy/libraries/Template.php(548): EE_Template->tags()
#7 ee/legacy/libraries/Template.php(237): EE_Template->parse(’{!—ra:0000000…’, false, 1, false)
#8 ee/legacy/libraries/Template.php(168): EE_Template->fetch_and_parse(’‘, ‘’, false)
#9 ee/legacy/libraries/Core.php(681): EE_Template->run_template_engine(’‘, ‘’)
#10 ee/legacy/controllers/ee.php(68): EE_Core->generate_page()
#11 [internal function]: EE->index()
#12 ee/EllisLab/ExpressionEngine/Core/Core.php(189): call_user_func_array(Array, Array)
#13 ee/EllisLab/ExpressionEngine/Core/Core.php(94): EllisLab\ExpressionEngine\Core\Core->runController(Array)
#14 ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
#15 index.php(175): require_once(’...’)
#15 index.php(175): require_once(’...’)

Profile
 
 
   
 

‹‹ Datagrab adding blank grid rows

Select A Theme