Welcome, Guest
Username: Password: Remember me

TOPIC: Back End form error

Back End form error 26 Nov 2011 03:12 #626

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
windows, firefox 8, joomla 1.7.3

Hi, the backend form for my icons table is working fine in the sandbox but the downloaded compenent is coming up with this error

Warning: get_class() expects parameter 1 to be object, array given in D:\xampp\htdocs\thaiplantscatalog\administrator\components\com_garden\models\iconitem.php on line 220

could you take a look please.

Thanks

update - now getting an error in the sandbox - icon category error

update 2- ok, I created an exact duplicate of the table and fields, and then it worked in both the sandbox and the component. I then foolishly deleted the original table which I know means you cannot check why it happened. I had put some images in the table, and I remember you mentioning that you did flush out the sandboxes which would remove images, do you think this could have caused something to corrupt or get stuck? It is the only thing I can think of as I checked it yesterday and it ran in the sandbox. I then checked in the sandbox this morning and noticed that the 2 test records with images had gone which is fine, but also that I got the error above creating a new record. Between it working and not working I had not made any change or even opened the table or the layouts. Puzzling. I will in avoid putting images into the sandbox in future though. I know what does and doesn't work, so it's not as necessary anyway.

So, my problem is solved, but want to avoid it happening again

Perhaps some clear advice somewhere on whether we can or cannot put images into rich text fields in the sandbox would be a good idea though.

thanks
Last Edit: 26 Nov 2011 05:25 by mossss.
The administrator has disabled public write access.

Re: Back End form error 04 Jan 2012 17:17 #815

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
How did you put images through editor ?
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Back End form error 05 Jan 2012 02:20 #822

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
Hi,

I found two ways while experimenting. First was just to literally drag a png from windows explorer into the rich text box. This puts the data:image/png;base64 data straight into the rich text box, and it works, but obviously not very elegant...


The second was just to type the direct link to the file into the rich text box, eg.

<p><img src="http://localhost/gardenplants/images/plants_symbols/height1.png" border="0" /></p>
<p>this is a test</p>
<p><img src="http://localhost/gardenplants/images/plants_symbols/lightfull.png" border="0" /></p>

At the time I was hoping that if I just got it to work in the sandbox, then I would be able to modify code inside the component to work, I tried but with no joomla experience, it was just getting too time consuming, so realised it would be better to wait for your image/file uploader.
The administrator has disabled public write access.

Re: Back End form error 05 Jan 2012 07:26 #824

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Ok. Thanks for your experience.
So, you didn't really uploaded images.

With the coming functionality, it will solve your problem.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Back End form error 05 Jan 2012 08:18 #826

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
No, I'm working locally so all the test images are already uploaded

the new functionality, yes, just eagre to get on with it now. The upload will work best for most images as many will be reused.

A question though, about the base64 png drag and drop. Is that a really rediculous way to do things? The images that would be going into the fields are really small and simple outline shapes of leaves and will be unique to every single record, so if it could actually be held in my plants record then this would be a nice and easy way to do it.

Or is there a more sensible easy way to do this?

thanks

richard
The administrator has disabled public write access.

Re: Back End form error 05 Jan 2012 08:40 #827

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I don't have definitive answer for this.

To my opinion, it depends what politic you want.
base64 storing images in article, is like the BLOB image format. Some hosters don't like this and your database can become very heavy.

Means that it is a weak point (even in our sandbox) and it is important to be careful with this is the final user car submit such content.
You can try to limit the size of the text, in order to do not allow too big content.


The positive point is that your dynamic content (images) are stored in database, so the backups are more easy to restore. You don't need to process images file backups.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Back End form error 05 Jan 2012 08:58 #828

  • mossss
  • mossss's Avatar
  • Offline
  • Premium Member
  • Posts: 100
  • Thank you received: 7
  • Karma: 9
ok thanks, will have to do some testing.
The administrator has disabled public write access.
Time to create page: 0.093 seconds

Get Started