Jump to content


Can't Save in Manage Resources


15 replies to this topic

#1 danlanphear

    Etomite Forum Newbie

  • Member
  • 41 posts

Posted 26 January 2009 - 09:16 PM

Hi,

I'm new to etomite and attempting my first use of it.

I can open, view and delete templates with the Manage Resources tool. I made a new template a few days ago, which I want to use as a new default template. I set it as the default template.

However, it was not working, so I opened it up, and it's empty--there's no code in it. I tried to paste in some code to repost it, but the save feature is dead. I emptied my cache, tried different browsers, rebooted. I tried checking/unchecking the boxes at the top or the template editor. I searched this forum thoroughly. I cannot save any changes to any templates.

In firefox, the developer toolbar registers a javascript error when I click save:

"Error: editAreaLoader is not defined
Source File: http://www.crossroadassembly.org/manager/i...p?id=3&a=16
Line: 1"

I checked my FTP to make sure all the files are uploaded to the manager/media/edit_area folder. They are all there.

What's up? How do I fix this?

Thanks,

Dan Lanphear

#2 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 26 January 2009 - 11:32 PM

First things first... See if temporarily disabling Edit Area in your Etomite Configuration panel allows proper functionality as far as saving templates...

Second, have you logged out and back into Etomite since your initial login...??? Doesn't sound like your problem is related to this, just covering the bases...

It is possible that there was a problem with uploading the code base... We've seen upload issues before that caused peculiar problems... Worst case scenario, you might need to re-upload the code base files again...

Keep us posted and welcome to Etomite... B)

#3 danlanphear

    Etomite Forum Newbie

  • Member
  • 41 posts

Posted 27 January 2009 - 12:51 AM

Thanks Ralph,

I tried what you said. No effect. In the meantime, I reinstalled the entire CMS, but it didn't make any difference. Here's where something interesting happened though.

I attempted to make a new template, typed in a name at the top, and instead of hitting "Tab" to jump to the description field, I hit "Enter" by mistake, and it saved my changes. I checked the resources page and there was my test template. But, the Save button still doesn't work at all.

I guess I could live with it, but what else might not be working right I wonder? Any inputs?

Thanks,

Dan

Edited by danlanphear, 27 January 2009 - 03:47 AM.


#4 danlanphear

    Etomite Forum Newbie

  • Member
  • 41 posts

Posted 27 January 2009 - 06:34 PM

Update: I'm still unable to use the save button in the Manage Resources function, but now it's also affecting the New Document function. When I create a new document, I have to put the cursor in the Title field in the Identification section and hit "Enter" to save the doc.

Again, this works for me, the webmaster, but my programming-illiterate content managers will undoubtedly be both confused and worried. Broken stuff doesn't inspire confidence.

Any other ideas?

Thanks


EDIT: Same problem trying to save changes to a snippet

Edited by danlanphear, 27 January 2009 - 06:54 PM.


#5 Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 27 January 2009 - 07:38 PM

OK let's get back to basics...

Please supply us with additional information so we can better assist you in resolving this issue... The following information, complete with version/release will be of great help... If the issue is browser-specific also include browsers tested and the results of each...

Etomite Version
Server Operating System
Apache Version
PHP Version
MySQL Version

Edited by Jelmer, 27 January 2009 - 07:39 PM.


#6 danlanphear

    Etomite Forum Newbie

  • Member
  • 41 posts

Posted 27 January 2009 - 07:52 PM

Hi Jelmer, here's the info you requested:

Etomite Version: 1.1 Prelude
Server Operating System: Linux
Apache Version: 2.2.11
PHP Version: 5.2.8
MySQL Version: 5.0.67-community-log
Browsers: IE 7.0.6, FireFox 3.0.5, Chrome 1.0.154.43

I am having this same issue with new docs, templates, snippets and chunks. I do not have trouble editing existing docs, permissions, users or configurations.

Thanks for getting back to me.

Edited by danlanphear, 27 January 2009 - 07:57 PM.


#7 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 27 January 2009 - 08:33 PM

When you log into the manager, are you logging in with an account that is an Administrator? Additional accounts can have special permissions assigned to stop creation of new items. (I'm guessing you are but thought I'd check).

#8 danlanphear

    Etomite Forum Newbie

  • Member
  • 41 posts

Posted 27 January 2009 - 11:38 PM

Yes.

#9 Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts
  • Gender:Male

Posted 28 January 2009 - 10:04 AM

manager index.html a=16 loads actions/dynamic/mutate_tempates.dynamic.action.php which initiates the edit area editor.

<?php
// Added 0614
// This loads the editarea js code editor
// for snippet editing
// If hightlight is set, highlighting is turned on
if($use_code_editor && $code_highlight)
{
?>

<script language="javascript" type="text/javascript">

editAreaLoader.init({
  id : "html_editor"		// textarea id
  ,syntax: "html"			// syntax to be uses for highgliting
  ,start_highlight: false		// to display with highlight mode on start-up
  ,allow_toggle: false
  ,toolbar: "search, go_to_line, |, undo, redo, |, select_font,|, change_smooth_selection, highlight, reset_highlight, |, help"
});
</script>

Again, my guess is that the installation paths have not been saved. Many initiating javascript scripts errors. See the other post: have you actually saved the settings in your site yet?? This must be done before etomite can actually be used.

#10 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 28 January 2009 - 01:55 PM

Which Linux distro is the server running...??? Also, what are the spec's of PC you are using, or is it happening from multiple workstations..???

#11 PaulD

    Likes Etomite Forums!

  • Developers
  • PipPip
  • 389 posts
  • Gender:Male

Posted 18 February 2009 - 03:54 PM

I have just developed a similar issue with 'Save' snippet.

(Everything working fine with uptodate fresh install - lite version, running on linux, on a host that I run everything on, so have many installs working fine...)

I have done and been working on quite a few snippets. Without having done anything particularly strange, etomite will not save my snippets when I try to edit, but it will let me save a blank new one, not a new one with content. It tries to save, seems to hand up, then reports connection was interrupted connecting to the database. But I can, with phpMyAdmin, insert my new snippet code into the database. I can then see the new snippet from the manager, but not save changes. So do you think it is the database or etomite?

UPDATE: Actually, it 'half' saves them, literally, chopping them off mid flow. So site has errors from unexpected ends etc. Again I can go in and edit the table directly. Snippet is not very big. (It must be a host problem).

I have checked the file in the processors folder for save snippets and it is exactly the same as the original downlaoded.

I do not know if this is an etomite problem, or perhaps my database is a bit buggered! Perhaps I have corrupted the data by directly inserting snippets. For a while there was strange behaviour where the snippet was saved as three seperate snippets, instead of overwriting when I tried it three times.

I dont know but it is driving me up the wall - anyone have any suggestions? It started yesterday and is still happening now. Do you think it is a database/host issue?

Any comments welcomed.

Paul.


Paul.

#12 danlanphear

    Etomite Forum Newbie

  • Member
  • 41 posts

Posted 18 February 2009 - 04:02 PM

Paul,

The solution to my problem with this was discussed in another topic...

http://www.etomite.c...wtopic=8293&hl=

My problem was different, but I hope this helps you.

-Dan

#13 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 18 February 2009 - 06:54 PM

Can you PM or Email me the exact snippet code that is causing problems...???

Also, has this code been saved successfully in another Etomite install...???

#14 PaulD

    Likes Etomite Forums!

  • Developers
  • PipPip
  • 389 posts
  • Gender:Male

Posted 18 February 2009 - 08:38 PM

Hi,

I was on phpMyAdmin and I got locked out when trying to delete a row. I think something is up with the table.

THe code I was saving for the first time when this happened (although I had not thought the code could in the snippet itself could be to blame, as it is not parsed when it is saved) was the searchform snippet altered slightly to search my own internal table.

It is here:

// Snippet name: SearchForm
// Snippet description: All-in-one snippet to search the site

$searchString = 
isset($_POST['search']) && 
$_POST['search']!= "{{" && 
$_POST['search']!= "[[" && 
$_POST['search']!= "[(" && 
$_POST['search']!= "[~" && 
$_POST['search']!= "[*" ?
$_POST['search'] : "";

$SearchForm .= '<br /><img src="ProdSearch.png" style="float:left; padding-right:10px;"><h1>Search for something specific</h1>
<p>Know what you are looking for? Use the search tool and search options to help you find it.</p>';

$SearchForm .= '<div style="text-align:center;">';
$SearchForm .= '<form name="SearchForm" action="" method="post">'."\n"; 
$SearchForm .= '<input type="text" name="search" class="text" value="'.$searchString.'" size="40" />'."\n"; 
$SearchForm .= '<input type="submit" name="sub" class="button" value="Search" /><br /> '."\n"; 
$SearchForm .= '<small>(Enter keywords to search for - ie Kettle.)</small>'; 
$SearchForm .= '</form>'; 
$SearchForm .= '</div>';



if(isset($_POST['search']) && $_POST['search']!='') 
{ 
	$search = explode(" ", $_POST['search']); 
	$tbl = $etomite->dbConfig['dbase'].".".$etomite->dbConfig['table_prefix']."DN_products";


	$sql = "SELECT * FROM $tbl WHERE ($tbl.prod_description LIKE '%".$search[0]."%'"; 
	for ($x=1;$x < count($search); $x++) 
	{ 
		$sql .= " AND $tbl.prod_description like '%$search[$x]%'"; 
	} 

	$sql .= " OR $tbl.prod_name LIKE '%".$search[0]."%' "; 
	for ($x=1;$x < count($search); $x++) 
	{ 
		$sql .= " AND $tbl.prod_name like '%$search[$x]%'"; 
	} 

	$sql .= " OR $tbl.prod_owner LIKE '%".$search[0]."%' "; 
	for ($x=1;$x < count($search); $x++) 
	{ 
		$sql .= " AND $tbl.prod_owner like '%$search[$x]%'"; 
	} 

	$sql .= ") AND $tbl.prod_active = 1;"; 



	$rs = $etomite->dbQuery($sql); 
	$limit = $etomite->recordCount($rs); 


	if($limit>0) 
	{ 
		// There are results
		$SearchForm .= "<p>The following (".$limit.") results were found:</p>\n";

		// loop through all the records
		for ($y = 0; $y < $limit; $y++) 
		{ 

			$SearchFormsrc=$etomite->fetchRow($rs); 
		 			$SearchForm.="<a href=''>".$SearchFormsrc['prod_code']."</a>";
		 			$SearchForm.="<a href=''><b>".$SearchFormsrc['prod_name']."</b></a><br />\n";
		} 
				
	} 
	else 
	{ 
		$SearchForm.="<p>Sorry, couldn't find anything!</p>"; 
	} 
} 


return $SearchForm;

I didnt try this code on another install. I wouldn't want to break a different database too, but could try it I suppose. You are welcome to have my user and password if you want to try it out to see the behaviour. I really am thinking that it must be the database and nothing to do with etomite.

My next step will be to copy all my snippets from the database, and templates etc. Reinstall fresh copy of eto, on fresh database. Then see if my snippets are working. I should probably use a different database to hold my own tables next time. This will be a pain so will probably do this in a few days time, unless you have any ideas? Sorry to be a pain.

Paul.

PS I tried it on another site, and saving this snippet caused the same error. Perhaps it is something in the code above after all.

PPS This also began soon after a firefox upgrade to 3.0.6 - Could it be something to do with that? [No - tried it on IE7 and same problem]. Come to think of it, I have not checked from a different computer. Will try that tomorrow.

Edited by PaulD, 18 February 2009 - 08:47 PM.


#15 Ralph

    Loves Etomite Forums!

  • Admin
  • 6,506 posts
  • Gender:Male

Posted 19 February 2009 - 02:16 PM

Keep us posted, PaulD... If you need me to take a look, just PM me the info...

Quick question... Are you using EditArea or just the standard textarea input box...???

#16 PaulD

    Likes Etomite Forums!

  • Developers
  • PipPip
  • 389 posts
  • Gender:Male

Posted 20 February 2009 - 03:39 PM

Hi Ralph,

It appears to be a Host problem.

Quote

"Our system administrators are looking in to issues with PHPMyAdmin, and hope to have it resolved soon. Your patience is appreciated."
Thank goodness :-)

In fairness, they are usually pretty good, and very quick. Will let you know if anything of any interest happens. I am relieved though because it could have been the ISP, my programming, (Etomite - although unlikely), my database tables doing somehting iffy, my sql syntax, my importing of data - could have been anything! I was at my wits end. So I am relieved it is the host. That is the easiest one to fix. I just have to sit back and wait for a bit.

Thanks for everyones suggestions,

Paul.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users