drush is not making a sub theme - drupal

my command vishal#vishal-linux:~/Dropbox/sites/residen$ drush zen "residen theme" --path=sites/all/themes/
the output :
Source directory /home/vishal/Dropbox/sites/residen//STARTERKIT is not readable or does not exist. [error]
rename(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/STARTERKIT.info.txt,/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/residen_theme.info):[warning]
No such file or directory drush.inc:798
file_get_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/residen_theme.info): failed to open stream: No such [warning]
file or directory zen.drush.inc:115
file_put_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/residen_theme.info): failed to open stream: No such [warning]
file or directory zen.drush.inc:117
file_get_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/theme-settings.php): failed to open stream: No such [warning]
file or directory zen.drush.inc:115
file_put_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/theme-settings.php): failed to open stream: No such [warning]
file or directory zen.drush.inc:117
file_get_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/template.php): failed to open stream: No such file or [warning]
directory zen.drush.inc:115
file_put_contents(/home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme/template.php): failed to open stream: No such file or [warning]
directory zen.drush.inc:117
Starter kit for "residen theme" created in: /home/vishal/Dropbox/sites/residen/sites/all/themes/residen_theme
however the theme dir was not created. I am not sure what went wrong. I am new to drush and zen. Please advice.
Thank you,
Vishal

Related

Wordpress Hosting Import Error Conflit Plugin Dokan

I went to import the site from another Wordpress hosting, and it is giving this error. The files are in the folder even though they are not. And every part of the plugin doesn't work.
Everything seems to work except this plugin. But in the other hosting without touching anything it works normally.
me/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/woocommerce/includes/libraries/class-emogrifier.php): failed to open stream: No such file or directory in /home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/includes/admin/announcement-background-process.php on line 14
Warning: include_once(): Failed opening '/home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/woocommerce/includes/libraries/class-emogrifier.php' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/includes/admin/announcement-background-process.php on line 14
Warning: include_once(/home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/includes/modules/rma): failed to open stream: No such file or directory in /home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/dokan-pro.php on line 286
Warning: include_once(): Failed opening '/home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/includes/modules/rma' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /home/u905569257/domains/smeh.com.br/public_html/wp-content/plugins/dokan-pro/dokan-pro.php on line 286

Warning: file_put_contents error in drupal

I am getting following error when I am trying to upload an image to a block in Drupal. Could anyone help me on this?
"Warning: file_put_contents(/sites/all/modules/azexo_composer/azexo_elements/elements.js): failed to open stream: Permission denied in azexo_get_template_elements() (line 738 of /sites/all/modules/azexo_composer/azexo_composer.module)"
Thanks in Advance
you don't have permission for create file in directory.
you can create file in sites/default/files directory

app/bootstrap.php.cache : failed to open stream: No such file or directory

After clone project from github i got next error:
Warning: require_once(C:\OpenServer\domains\MyBlog.test\web/../app/bootstrap.php.cache): failed to open stream: No such file or directory in C:\OpenServer\domains\MyBlog.test\web\app_dev.php on line 20
Fatal error: require_once(): Failed opening required 'C:\OpenServer\domains\MyBlog.test\web/../app/bootstrap.php.cache' (include_path='.;c:/openserver/modules/php/PHP-5.5;c:/openserver/modules/php/PHP-5.5/PEAR/pear') in C:\OpenServer\domains\MyBlog.test\web\app_dev.php on line 20
Unfortunately in .gitignore file i founded next note:
/app/bootstrap.php.cache
/var/bootstrap.php.cache
/bin/*
!bin/console
!bin/symfony_requirements
So, how to solve this problem?.
I execute php composer.phar update command, but it's not helped.
You probably need to run composer to generate the bootstrap file and download vendors.
In your composer.json you will see a build bootstrap command that gets executed for you.
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap"
],

pdf2swf error while upload document file in openmeetings

openmeetings-2.1.1 in my system,i have install ghostscript,ImageMagick-6.8.9 and swftools, when i try to upload document file like .ppt,.doc file, it upload successfully but when i drag to white board it give me error like below.
key: processSWF
process: generateSwf
command; [pdf2swf, -s, insertstop, -s, poly2bitmap, -i, -j, 85, -s, zoom=72,
/home/PROJECTNAME/web/PROJECTNAME/FOLDER/apache-
openmeetings/webapps/openmeetings/upload/files/
be44f8c982e2ca52610b691c3dbda38e/be44f8c982e2c
a52610b691c3dbda38e.pdf,
/home/PROJECTNAME/web/FOLDER/public_html/apache-
openmeetings/webapps/openmeetings/upload/files/
be44f8c982e2ca52610b691c3dbda38e/be44f8c982e2
ca52610b691c3dbda38e.swf]
exception: java.io.IOException: Cannot run program "pdf2swf": error=2, No such file or
directory
error: Cannot run program "pdf2swf": error=2, No such file or directory
exitValue: java.io.IOException: Cannot run program "pdf2swf": error=2, No such file or
directory
i got this error in dialog box.i have Google a lot, kindly help me to figure out this problem.
thank you.
You Have to edit the "swftools_path" in configuration!
If you don't have swftools you should install version 2012-10-15-1307, the newest version doesn't work!

I can't upload files after migrating a Drupal site to a new server

We have a content type with two imagefield / filefield fields, and after migrating our site to a new server, we have the following problem:
When we submit a new item for this content type, with two images for those fields, drupal gives us the following error and does not upload the images:
warning:
fopen(sites/default/files/.htaccess)
[function.fopen]: failed to open
stream: Permission denied in
/websites/sitename/data/sites/all/modules/filefield/field_file.inc
on line 349. warning:
fopen(sites/default/files/.htaccess)
[function.fopen]: failed to open
stream: Permission denied in
/websites/sitename/data/sites/all/modules/filefield/field_file.inc
on line 349. An image thumbnail was
not able to be created. warning:
fopen(sites/default/files/.htaccess)
[function.fopen]: failed to open
stream: Permission denied in
/websites/sitename/data/sites/all/modules/filefield/field_file.inc
on line 349. warning:
fopen(sites/default/files/.htaccess)
[function.fopen]: failed to open
stream: Permission denied in
/websites/sitename/data/sites/all/modules/filefield/field_file.inc
on line 349. An image thumbnail was
not able to be created.
I understand this is a permissions error, but it is not clear to me where do I have to change permissions.
Line 349 of file.inc has the following code:
if (($fp = fopen("$directory/.htaccess", 'w')) && fputs($fp, $htaccess_lines)) {
fclose($fp);
chmod($directory .'/.htaccess', 0664);
}
else {
$repl = array('%directory' => $directory, '!htaccess' => nl2br(check_plain($htaccess_lines)));
form_set_error($form_item, t("Security warning: Couldn't write .htaccess file. Please create a .htaccess file in your %directory directory which contains the following lines:<br /><code>!htaccess</code>", $repl));
*EDIT: Solved, The issue was that for some reason drupal needed write permissions in the sites/default/files folder to create a .htaccess file.
The code in file.inc wants to update/create the .htaccess file in the files directory ('sites/default/files' in your case). That it fails could mean that your web server process' do not have write permissions in the files directory at all (unlikely, as this would give more prominent errors in the backend), or that there already exists a .htaccess file in that directory which is set to read only (more likely, could have happened on migration and can easily be overlooked, as the file is hidden by default).

Resources