WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Code Editor
[resolved] patches to fix theme download ("error ziping files", zip file name) (2 posts)

  1. neenack
    Member
    Posted 1 year ago #

    I ran into two problems while trying to install the plugin and use theme download.

    1. "error ziping files" -- wordpress installation did not have permission to write the zip file. Fixed with this patch:
    554c554
    < $zipname = date('Ymdhis') . '.zip';
    ---
    > $zipname = '/tmp/'.date('Ymdhis') . '.zip';

    2. Once that was fixed, file downloaded with name "zip". Fixed with this patch:
    567c567
    < header("Content-Disposition: attachment; filename=\"".strtolower($t->Name) . '.zip'."\"");
    ---
    > header("Content-Disposition: attachment; filename=\"".strtolower($t->Template) . '.zip'."\"");

    The issue was that the theme did not have a name, so I used the directory name instead.

    http://wordpress.org/extend/plugins/advanced-code-editor/

  2. Bainternet
    Member
    Plugin Author

    Posted 1 year ago #

    1. Will not work at most hosting!
    2. if theme has no name then the problem is not with the plugin obviously :)

    thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.