Git Product home page Git Product logo

Comments (6)

robingram avatar robingram commented on August 11, 2024 1

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.

robingram avatar robingram commented on August 11, 2024 1

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.

robbieaverill avatar robbieaverill commented on August 11, 2024

Are you able to fish out any error logs?

from silverstripe-gridfieldqueuedexport.

robingram avatar robingram commented on August 11, 2024

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.

robbieaverill avatar robbieaverill commented on August 11, 2024

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.

maxime-rainville avatar maxime-rainville commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.