Rev 135: Export problem with broken connection

Status
Not open for further replies.

andrelewis

New Member
When exporting a form in Fabrik from the table view, I select just one form, then put in the name to be added to the form. I check only the first option, Export Fabrik Data.

When I click the Export button I get about 15 of the following errors then an out of memory error for PHP:

Code:
[Tue Jul 31 01:37:20 2007] [error] [client 127.0.0.1] PHP Warning: opendir(/var/www/html/components/com_fabrik/views/form/tmpl/default/images/././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././././. in /var/www/html/includes/Archive/Tar.php on line 829, referer: [url]http://localhost/administrator/index2.php[/url]

Code:
[Tue Jul 31 01:37:20 2007] [error] [client 127.0.0.1] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /var/www/html/includes/PEAR/PEAR.php on line 863, referer: [url]http://localhost/administrator/index2.php[/url]
Allowed memory size of 67108864 bytes exhausted (tried to allocate 23 bytes)

and the error on the front-side is:
Code:
An error occurred while loading [url]http://localhost/administrator/index3.php:[/url]
Connection to host localhost is broken.

Andre
 
Hi Andre

Can you test revision 140 pls, I can't replicate the same error as you but I have fixed some issues for windows, and I've moved the location of the temp file creation to /media/ which your joomla site should set as writable.

If that doesnt work can you post the sql for creating the table you are trying to export, and if you are running your site with open_basedir and or safe_mode on
Cheers
Rob
 
Hi Rob,
I only export the Fabrik Data, usually never the table structures or the table records.

I get this output:

cant find xml setup file -/var/www/html/media/\fabrik_package-Wonder.xml

But this time no errors in the logs.

Andre
 
safe_mode = Off

; open_basedir, if set, limits all file operations to the defined directory
;open_basedir =

As for the table it's every table,

Although the tables don't use the jos_prefixes, don't know if that would make a difference.

I'll try to export a Fabrik table and see after the path issue is cleaned up.

Andre
 
When I did an import I got the error:
Code:
Failed to copy file: /var/www/html/media/install_46cacb5867c12/views/table/tmpl/bluesky/template.php to /var/www/html/components/com_fabrik/views/table/tmpl/bluesky/template.php

Code:
[Tue Aug 21 04:24:11 2007] [error] [client 127.0.0.1] PHP Warning: copy(/var/www/html/components/com_fabrik/views/table/tmpl/bluesky/images) [<a href='function.copy'>function.copy</a>]: failed to open stream: Is a directory in /var/www/html/administrator/components/com_installer/installer.class.php on line 360, referer: [url]http://localhost/administrator/index2.php[/url]
[Tue Aug 21 04:24:11 2007] [error] [client 127.0.0.1] PHP Warning: copy(/var/www/html/components/com_fabrik/views/table/tmpl/bluesky/images/bluesky-heading.gif) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied in /var/www/html/administrator/components/com_installer/installer.class.php on line 360, referer: [url]http://localhost/administrator/index2.php[/url]
[Tue Aug 21 04:24:11 2007] [error] [client 127.0.0.1] PHP Warning: copy(/var/www/html/components/com_fabrik/views/table/tmpl/bluesky/images/bluesky-orderasc.png) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied in /var/www/html/administrator/components/com_installer/installer.class.php on line 360, referer: [url]http://localhost/administrator/index2.php[/url]
[Tue Aug 21 04:24:11 2007] [error] [client 127.0.0.1] PHP Warning: copy(/var/www/html/components/com_fabrik/views/table/tmpl/bluesky/images/bluesky-orderdesc.png) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied in /var/www/html/administrator/components/com_installer/installer.class.php on line 360, referer: [url]http://localhost/administrator/index2.php[/url]
[Tue Aug 21 04:24:11 2007] [error] [client 127.0.0.1] PHP Warning: copy(/var/www/html/components/com_fabrik/views/table/tmpl/bluesky/javascript.js) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied in /var/www/html/administrator/components/com_installer/installer.class.php on line 360, referer: [url]http://localhost/administrator/index2.php[/url]
[Tue Aug 21 04:24:11 2007] [error] [client 127.0.0.1] PHP Warning: copy(/var/www/html/components/com_fabrik/views/table/tmpl/bluesky/template.css) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied in /var/www/html/administrator/components/com_installer/installer.class.php on line 360, referer: [url]http://localhost/administrator/index2.php[/url]
[Tue Aug 21 04:24:11 2007] [error] [client 127.0.0.1] PHP Warning: copy(/var/www/html/components/com_fabrik/views/table/tmpl/bluesky/template.php) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied in /var/www/html/administrator/components/com_installer/installer.class.php on line 360, referer: [url]http://localhost/administrator/index2.php[/url]
[Tue Aug 21 04:28:28 2007] [error] [client 127.0.0.1] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/administrator/components/com_fabrik/views/table/tmpl/default.php on line 274, referer: [url]http://localhost/administrator/index2.php?option=com_fabrik&task=tables[/url]

I assume that's because the file existed?
*Edit: I tried another table and it seemed to work just fine, however it didn't use the blusky template which the other did...?

Does the export/import copy across custom templates?



Andre
 
yes it does copy across template files, are the file permissions different for /var/www/html/components/com_fabrik/views/table/tmpl/bluesky/ compared to other template folders?

- ROb
 
No, doesn't look different at all, with the exception that blue-sky uses images and the default doesn't.

I'm going through the export/import right now.

Andre
 
Ok. The copy error's are because of permission problems related to copying over the svn. I have the group set, but the user is wrong.

So far as I can tell everything is working. :)

Andre
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top