Closed (fixed)
Project:
LiveJournal Sync
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
17 May 2009 at 05:46 UTC
Updated:
26 Aug 2010 at 14:56 UTC
warning: fopen(/qqq-lj.xml) [function.fopen]: failed to open stream: No such file or directory in /home/public_html/modules/ljsync/ljsync_parser.cls.php on line 45.
Could not open file /qqq-lj.xml.
Why? And what can I do?
I can`t create it myself by FTP, coz of permissions.
Comments
Comment #1
noelbush commentedDo you have write access to the "files" directory for your site?
Comment #2
noelbush commentedComment #3
noelbush commentedClosing -- I am assuming that this is just a permissions problem for you, which will affect more than just your use of this module.
Comment #4
urix commentedI have the same error message.
I set permissions of "sites/default/files/" to 777.
Still no luck.
Maybe, some short documentation on installing and usage colud be useful.
For example, I copied module files, enabled it in Modules admin section, and what next?
Run cron? It gives this message.
Comment #5
thefile commentedI have the identical issue.
Apparently I have the correct write rights to sites/default/files because my theme files are in that directory.
Now I have Cross post and Sync installed, and I have a post on my site that got cross-posted to LJ, but none of the comments from either side (website and LJ) are making it over to the other.
Comment #6
lolmaus commentedSubscribing. Got the same issue.
Running Drupal on latest Arch Linux with Perl installed.
Permission for 'files' folder is okay.
Comment #7
lolmaus commentedSOS!
Comment #8
noelbush commentedI have just checked in some updates that should hopefully address this for you. Rather than hard-coding the location of the cache directory for the underlying perl script, this allows you to configure it. When the new release appears, please let me know if your problem is resolved.
Comment #9
renat commentedHello!
Unfortunately I also faced this problem:
* warning: fopen(/home/r/renatbiz/renatbiz/public_html/sites/default/files/uploads/ljsync/ljserver-lj.xml) [function.fopen]: failed to open stream: No such file or directory in /home/r/renatbiz/renatbiz/public_html/sites/all/modules/ljsync/ljsync_parser.cls.php on line 45.
* Could not open file /home/r/renatbiz/renatbiz/public_html/sites/default/files/uploads/ljsync/ljserver-lj.xml.
I grant permissions 777 to /home/r/renatbiz/renatbiz/public_html/sites/default/files/uploads/ljsync/ folder, but neither this, nor manual creation of ljserver-lj.xml file with the same permissions didn't help. I cheked LiveJournal Sync tunings, but as far as there were no new releases since the date of your last post it is not surprising, that I'didn't found any things useful in my situation.
I'll be happy to provide any additional information to fix this problem.
Thank you for your work over this plugin!
Comment #10
DanielJohnston commentedConfirming this problem still exists on my setup. There are a few log entries leading up to the failure, and trying to run the initial perl script directly gives the following output:
Can't locate XMLRPC/Lite.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /var/aegir/drupal-6.16/sites/all/modules/ljsync/jbackup.pl line 69.I can't find the missing package in aptitude, but will update if I do.
Comment #11
lolmaus commentedHahaha! DanielJohnston, what a great idea to launch the perl script directly!
The problem is that LJSync lacks some dependencies.
Solution (for Ubuntu):
Voilà!
Comment #12
noelbush commentedI have updated the documentation to reflect the dependencies.
Comment #13
noelbush commentedAddressed in release 6.x-1.3