Flashblocks Flash CMS
Welcome, Guest
Please Login or Register.    Lost Password?
Problem while saving (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Problem while saving
#2614
Problem while saving 1 Year, 1 Month ago
Hi,

I have a problem while saving the contents with FlashBlocks. Whenever I save, the whole content of the destination file gets deleted. The only thing that remains in the file is
Code: :

 flashcms=



After some research I found out that no data is posted to the flashblocks_save.php file. The $theFile variable has its proper value but the $theData var is just empty.

When watching the HTTP traffic I recognised that the server sends me a PHP error message
<br />

<b>Warning</b>: fwrite(): supplied argument is not a valid stream resource in <b>/my/server/path

/path/to/flashblocks_save.php</b> on line <b>26</b><br />

writing=error&<br />

<b>Warning</b>: fclose(): supplied argument is not a valid stream resource in <b>/my/server/path

/path/to/flashblocks_save.php</b> on line <b>32</b><br />
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2621
admin ()
User Online Now Click here to see the profile of this user
Flashblocks Birthdate: 2005-02-14
 
Re:Problem while saving 1 Year, 1 Month ago
Thanks for debugging this.

The path is unusual, "/my/server/path/path/to/flashblocks_save.php". Do you have any idea why this path is being used by the flashblocks_save.php script?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2642
Re:Problem while saving 1 Year, 1 Month ago
Yeah that's beause it's not the real path......

The path to flashblocks_save.php is correct because it does save and my customlog file gets written properly.

Fact is that $_POST['theData'] does not exist. That's all I can say. A small testscript works fine. Is there possibly a problem with large amount of data?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2643
admin ()
User Online Now Click here to see the profile of this user
Flashblocks Birthdate: 2005-02-14
 
Re:Problem while saving 1 Year, 1 Month ago
I have seen files well over 100k saving fine but just in case your server has a limit you may want to test with a smaller amount of data.

I have seen strange named directories giving PHP a problem. I had to rename a dir from "DIR.." to "DIR"

Have you tested the demo site that comes with Flashblocks to make sure that it is nothing to do with your current Fla?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3555
Re:Problem while saving 10 Months ago
I'm having this same problem.

What issues in the FLA would cause the file to delete on saving?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3556
admin ()
User Online Now Click here to see the profile of this user
Flashblocks Birthdate: 2005-02-14
 
Re:Problem while saving 10 Months ago
I have never heard of this happening before. I currently have a Flashblocks Developer site that has been running for over three years, without any administration from myself. The site has never crashed but is completely updated by the client.

Flashblocks Developer keeps a single backup of the previously saved site's data. Flashblocks ML keeps an entire history of previously saved data files in the temp directory. so at the least it could be retrieved if the data file was overwritten with nothing.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Thank you