Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank screen upon 'Export Batch' #2

Open
mhawke opened this issue Dec 2, 2015 · 16 comments
Open

Blank screen upon 'Export Batch' #2

mhawke opened this issue Dec 2, 2015 · 16 comments

Comments

@mhawke
Copy link

mhawke commented Dec 2, 2015

First, let me say that this is a tremendous tool. I just tried this for the first time and all works fine until I click the 'Export Batch' button and then I just get a black white page containing no HTML and no error message. For my test, I'm only exporting 2-3 pages. It doesn't matter which pages I try to export, I never get to the 'Batch Export' screen shown at 5:25 of your instructional video. Any ideas?

@aembler
Copy link
Member

aembler commented Dec 2, 2015

Thanks. I think the issue is related to some code in the 5.6 exporter that wasn't present in the 5.5 exporter (which we used to export our documentation on concrete5.org.) I think the problem is that we attempt to export pages and then re-render the dashboard page, but the export page method actually renders the pages behind the scenes, in order to get all the area content. The View library has problems then re-rendering the dashboard page in the same request.

This can be fixed by generating the XML behind the scenes, like we used to do.

#3

I will try to get to this issue soon. If you'd like to see how things work without this being a problem, open up concrete/core/models/page.php, find the export method and comment out these lines:

    $v = View::getInstance();
    $v->disableEditing();
    $v->disableLinks();
    $v->enablePreview();
    ob_start();
    $v->render($this);
    ob_end_clean();

I think that will fix the issue you're seeing.

@mhawke
Copy link
Author

mhawke commented Dec 2, 2015

Yes, that fixes it. Thanks.

@alanvictory
Copy link

Hi, I have the same problem as mhawke and I made the change to the export method and still have a blank page problem. I have a large amount of mp3 a mp4 files in the file manager linked to pages, Would this have an effect? I increased my max_execution_time = 360 in the ini.php. Thank you Andrew

@alanvictory
Copy link

Hi Andrew, I did not make the the core in UPDATES folder, It works for me now but when I download the files I find this in the Zip file

AJI145xJDyDb.zip

@alanvictory
Copy link

Hi Andrew, After trying, I found that every time I tried to export, it would go blank but the toolbar would be the one for Wordpress for Concrete5 toolbar. Just let you know.

@epicoun
Copy link

epicoun commented Feb 10, 2016

when i use the export tool on my 5.6 installation, after selecting export i just get a screen with the menu bar and the background image and the menubar is inactive. even if i just try to export a single page.

is there a way to easily see / debug whats going on ?

@laurabockute
Copy link

I am experiencing a similar problem to what the epicoun is saying. I installed the legacy migration tool on my 5.6.3.3 site. The pages were added successfully to the batch and when I hit Export Batch, I get my header and the rest is blank. Please help!

@alanvictory
Copy link

Hi epicoun and laurabockute, the problem is fixed by following what aembler said to do above, but remember to find the right core concrete files in updates folder and then comment out the lines he lists.

@epicoun
Copy link

epicoun commented Feb 27, 2016

ok, the above is working.

however when try to import the batch in my 5.7 installation get the following error:

An exception occurred while executing 'insert into Pages (cID, ptID, cParentID, uID, cInheritPermissionsFrom, cOverrideTemplatePermissions, cInheritPermissionsFromCID, cDisplayOrder, pkgID) values (?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["226", "6", null, 1, "TEMPLATE", null, "145", 0, 0]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'cParentID' cannot be null

@laurabockute
Copy link

Thank you, alanvictory! Yes, I was looking in the wrong folder, so the export worked. But again, just like epicoun, I am experiencing the same problem when I try to import in the 5.7 site. Any help?

@PhilipHYoung
Copy link

Hi, I too am experiencing the same problem when I try to import in the 5.7 site. Any thoughts?

@PerryDVogel
Copy link

I am having trouble with the Export Batch. Any help?

Warning: SimpleXMLElement::addChild(): unterminated entity reference A in /home/pervog1/purplemartindakotas.org/updates/concrete5.6.3.4/concrete/core/models/attribute/types/select.php on line 86

Warning: SimpleXMLElement::addChild(): unterminated entity reference A in /home/pervog1/purplemartindakotas.org/updates/concrete5.6.3.4/concrete/core/models/attribute/types/select.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/pervog1/purplemartindakotas.org/updates/concrete5.6.3.4/concrete/core/models/attribute/types/select.php:86) in /home/pervog1/purplemartindakotas.org/updates/concrete5.6.3.4/concrete/core/libraries/view.php on line 963

@aembler
Copy link
Member

aembler commented May 2, 2016

Can you try re-running the export using the very latest 5.6 core found at http://github.com/concrete5/concrete5-legacy?

@PerryDVogel
Copy link

PerryDVogel commented May 23, 2016

Created a new site http://concrete5-legacy.purplemartindakotas.org/ with 5.6.3.5b1 and installed the addon_migration_tool_legacy to with intentions convert content from 5.6 to import into 5.7 and when attempting to Export Batch, there is no error, but the page that is displayed is locked. The only way out of the page is close the browser or hit the back button.

@simoroshka
Copy link

Make sure short_php_tag is enabled.

@danfyles
Copy link

I had the same issues outlined here - initially short_php_tag set to off so I didn't even get a page when I clicked 'Batches' in 5.6.3.4 for the first time. Once that was dealt with, clicking the download batch button just displayed a blank page with the menu bar and background OK.
So I swapped out my concrete folder for the latest 'bleeding edge' one linked to by Andrew, above (I was working on a clone of the original site - would not do this on a live site) and clicked the Force Upgrade button at /index.php/tools/required/upgrade
After this I was able to export the xml and the associated files as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants