Comments (6)
Nothing in Apache or PHP error logs, or if I add logging in my _config.php
. Since it isn't actually outputting an error message I'm not sure that it is resulting in an uncaught exception. Looks more like it is rendering the wrong thing.
from silverstripe-gridfieldqueuedexport.
I'm not sure it would be evident with that configuration @robbieaverill. We see the issue in this situation:
- We have Model A with a model admin. The export works and can be refreshed when exporting Model A at the model admin level.
- Model A has a
has_many
relationship to Model B. - When we edit an instance of Model A we have a gridfield in a separate tab showing the related Model B instances.
- If this Model B gridfield has the queued export button then the export will work but we won't be able to refresh the export page.
Does that make sense?
We're on CWP 1.6 so we're using whatever framework version goes with that.
from silverstripe-gridfieldqueuedexport.
Are you able to fish out any error logs?
from silverstripe-gridfieldqueuedexport.
The problem centres on the behaviour when the request isn't AJAX:
if ($request->isAjax()) {
return $return;
} else {
return $controller->customise(array('Content' => $return));
}
from silverstripe-gridfieldqueuedexport.
Hey @robingram, when you get a chance could you try and provide a bit more context around this?
I've tested this on CWP 1.5 and CWP 1.7 (SS 3.5 an 3.6) with gridfieldqueuedexport 1.1.x using the following configuration:
class Page extends BasePage
{
private static $has_many = array(
'Monkeys' => 'Monkey'
);
public function getCMSFields()
{
$fields = parent::getCMSFields();
$fields->addFieldToTab(
'Root.Main',
$gridField = GridField::create('Monkeys', null, $this->Monkeys(), new GridFieldConfig_RecordEditor)
);
$config = $gridField->getConfig();
$config->addComponent($newExportButton = new GridFieldQueuedExportButton());
return $fields;
}
}
class Monkey extends DataObject
{
private static $db = ['Name' => 'Varchar'];
private static $has_one = [
'Page' => 'Page'
];
}
My export URL is refreshable, and contains the page ID.
Are you possibly using an older version of the CMS/framework? In the past page IDs were not stored in the URL, which could cause this sort of behaviour when not posted to or stored in a session.
from silverstripe-gridfieldqueuedexport.
Unfortunately, Silverstripe CMS 3 has entered limited support in June 2018. This means we'll only be fixing critical bugs and security issues for Silverstripe CMS 3 going forward.
You can read the Silverstripe CMS Roadmap for more information on our support commitments.
from silverstripe-gridfieldqueuedexport.
Related Issues (20)
- Add queued import button?
- Check and update module for SS4 compatibility where necessary
- Template not found in SilverStripe 4.1 HOT 3
- Extension setup errors HOT 1
- None of the following templates could be found (namespace issue) HOT 2
- Does not respect GridField filtering HOT 9
- Investigate: Multi server "export has already been downloaded" HOT 16
- Dir perms affected by current user mask, prevents file cleanup HOT 1
- Tests fail on SS 4.4 with capitalisation change HOT 1
- "Back to X" button should use GridField title, not name HOT 3
- Subverting SS4 assets module and potentially weakening the security of the module
- Export incorrect when QueuedJob takes more than 1 cycle to complete HOT 2
- Broken build - testGenerateExport() - Couldn't restore GridField
- Userforms integration documentation
- Nested gridfield compatibility seems broken HOT 1
- PermissionFailure for user after clicking export button HOT 2
- Module breaks on Silverstripe 4.12 HOT 8
- Erroring with elemental-userforms
- info message when after running filling up the logs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silverstripe-gridfieldqueuedexport.