Artist add on error message in Lite Cart admin

Designer
Nuo Canada
Narys nuo lapkr. 2018

Hi,...I've finally upgraded to 2.2.0 and having some problems with the artist add on.  In the catalog>product page I'm seeing an error message:

Artist Deprecated: The 4th parameter $multiple in form_draw_select_field() has been deprecated in ~/vqmod/vqcache/vq2-includes_functions_func_form.inc.php (Line 363)
Please see below.

Also, when I'm in the catalog>artist section...when trying to edit artist info an error message appears...

Fatal error: Uncaught Exception: Invalid artist (ID: 14) in /home/airclix3/public_html/webshop/includes/entities/ent_artist.inc.php:46 Stack trace: #0 /home/airclix3/public_html/webshop/includes/entities/ent_artist.inc.php(10): ent_artist->load('14') #1 /home/airclix3/public_html/webshop/admin123/catalog.app/edit_artist.inc.php(4): ent_artist->__construct('14') #2 /home/airclix3/public_html/webshop/admin123/index.php(140): include('/home/airclix3/...') #3 {main} thrown in /home/airclix3/public_html/webshop/includes/entities/ent_artist.inc.php on line 46

VQmod test on the artist add on yields all checks out.

Thanks for any insight.

tim
Founder
Nuo Sweden
Narys nuo geg. 2013
tim

(I moved this thread to the add-ons forum for the Artists add-on.)

I refreshed the package with the very last verision I had here on my local drive.
Download again and drop on top.

Designer
Nuo Canada
Narys nuo lapkr. 2018

Hi Tim, hey that did something.  The artist dropdown menu now appears in the catalog-product page and works fine.

However, when I'm in the catalog>artist section, I still get an error..when trying to edit artist info.



Fatal error: Uncaught Exception: Invalid artist (ID: 7) in /home/airclix3/public_html/webshop/includes/entities/ent_artist.inc.php:46 Stack trace: #0 /home/airclix3/public_html/webshop/includes/entities/ent_artist.inc.php(10): ent_artist->load('7') #1 /home/airclix3/public_html/webshop/admin123/catalog.app/edit_artist.inc.php(4): ent_artist->__construct('7') #2 /home/airclix3/public_html/webshop/admin123/index.php(140): include('/home/airclix3/...') #3 {main} thrown in /home/airclix3/public_html/webshop/includes/entities/ent_artist.inc.php on line 46```

Thanks very much for your help.
Miles
tim
Founder
Nuo Sweden
Narys nuo geg. 2013
tim

@airclix

In ~/includes/entities/ent_artist.inc.php (Line 46)

Find

if (!preg_match('#^[0-9]+$#', $customer_id)) throw new Exception('Invalid artist (ID: '. $artist_id .')');

Replace with

if (!preg_match('#^[0-9]+$#', $artist_id)) throw new Exception('Invalid artist (ID: '. $artist_id .')');

Designer
Nuo Canada
Narys nuo lapkr. 2018

Thanks for that...unfortunately now I'm getting another error. 

Fatal error: Uncaught Exception: Could not find artist (ID: 7) in database. in /home/airclix3/public_html/webshop/includes/entities/ent_artist.inc.php:60 Stack trace: #0 /home/airclix3/public_html/webshop/includes/entities/ent_artist.inc.php(10): ent_artist->load('7') #1 /home/airclix3/public_html/webshop/admin123/catalog.app/edit_artist.inc.php(4): ent_artist->__construct('7') #2 /home/airclix3/public_html/webshop/admin123/index.php(140): include('/home/airclix3/...') #3 {main} thrown in /home/airclix3/public_html/webshop/includes/entities/ent_artist.inc.php on line 60

Cheers, 
Miles

tim
Founder
Nuo Sweden
Narys nuo geg. 2013
tim

So sorry for the delay. I almost forgot about this.
I looked at the code and I don't see anyting wrong with the entity object.
Are you sure this id 7 is in your artist database?

Designer
Nuo Canada
Narys nuo lapkr. 2018

Hi Tim, actually it doesn't matter which artist I click on. Everyone will show up as "could not find artist" All artists appear in the data bases. 

Thanks, 
Miles

tim
Founder
Nuo Sweden
Narys nuo geg. 2013
tim

Rookie mistake by me, grab the download again. The file corrected is ent_artist.inc.php.
Sorry for the wait. People are mailing me like crazy these last two weeks.

Designer
Nuo Canada
Narys nuo lapkr. 2018

Yay, that did the trick.  Thanks so much.
Miles

Jūs
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.