Jump to content

Open Coterie  ·  19 members

SMF Staff People

ACM - Error when trying delete tab and icon question


Cereza
 Share

Recommended Posts

Trying to delete a tab in bio form area we get this error. Not even sure what to do with that lol :

An Error Has Occurred!

Wrong value type sent to the database. Integer expected. (varvars)

 

 

Also where do the icons go for the ACM? I don't see the modify and delete icons but the link is there. 

 

Thank you

 

Cereza

jlLQ2fy.png

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

This post answers the images question.

 

The first thing, I'm gonna need more than that, so check your error logs and whatever, see if you can get a filename or something, because this should only be happening when an ID is trying to turn itself into a negative number, and I don't... have any bloody idea what would be trying to do that re: deleting a tab. So. I need something more than just "this is a thing that happened" to fix that.

nusignature.png nusignature.png

I am the darkness, always watching, always listening, ALWAYS THERE.
(If you're interested in Plain of Ice, message me, it's private. Bleach site, non-canon.)

Link to comment
Share on other sites

Yes. sorry, didn't even think to look there. Here is the error log when I tried to do it. 

 

Apply Filter: Only show the error messages of this URL
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected. (varvars)
Function: acmRemoveBioTab
Apply Filter: Only show the errors from this file

jlLQ2fy.png

Link to comment
Share on other sites

Mmm apparently this is being caused by the code getting variables for fields that are attached to it, but it not being formatted the right way and being unable to make sense of it when it tries deleting bio data for that field. Because the field is deleted with its tab.

Best thing I can say is, try commenting this:

			if(!empty($field_vars))
			{
				foreach($field_vars as $varvars)
				{
					$smcFunc['db_query']('','
						DELETE
						FROM {db_prefix}acm_bio_data
						WHERE
							field_variable = {int:varvars}',
						array(
							'varvars' => $varvars
						)
					);
				}
			}

(Surround it in /* */)

in the Subs-CharactersAdmin file and see if it'll go like that. You'll still have bio data from a field that doesn't exist if it was there, but it should make it work.

... well, I guess you could also delete it lol

nusignature.png nusignature.png

I am the darkness, always watching, always listening, ALWAYS THERE.
(If you're interested in Plain of Ice, message me, it's private. Bleach site, non-canon.)

Link to comment
Share on other sites

Awesome! Thank you! it worked. I kept it in and surrounded it with /* */.

 

I may have more. We opted to doing a new forum as opposed to trying to fix the other one lol. 

jlLQ2fy.png

Link to comment
Share on other sites

Ok so I have Another one. lol I should just change the thread to ACM  issues lol. 


Ok so I was doing up some journals for one of my characters and On the ACM journals page (Image included below) I clicked on Ja'lil's journals and go this error:

 

An Error Has Occurred!

The database value you're trying to insert does not exist: id_character

 

This is the error log.

Apply Filter: Only show the error messages of this URL
Apply Filter: Only show the errors with the same message
The database value you're trying to insert does not exist: id_character
Function: acmLoadCharacterEdit
Apply Filter: Only show the errors from this file

 

Which corresponds with this code in the sub-characters file:
 

{
    global $smcFunc;
    
    $request = $smcFunc['db_query']('','
        SELECT
            *
        FROM {db_prefix}acm_characters
        WHERE id_character = {int:id_character}',
        array(
            'id_character' => $id_character
        )

 

So not sure what to do here. Tried to delete it and got a completely different error. lol

 

 

acm journals.png

Edited by Cereza

jlLQ2fy.png

Link to comment
Share on other sites

I actually don't think the journal system ever got finished in ACM, so it's probably a feature best left turned off...

Otherwise, it looks like it's not getting a character ID... actually it looks like there's a function running that function that should not be. So that's nice. I ... do not have either the time or patience to troubleshoot that, so, yeah, probably a feature best left turned off. I don't use ACM anymore, ftr, it's supported insofar as if I can fix it quickly without having to install it, okay, let's do it, but I'm not doing any new releases or bug fixes.

nusignature.png nusignature.png

I am the darkness, always watching, always listening, ALWAYS THERE.
(If you're interested in Plain of Ice, message me, it's private. Bleach site, non-canon.)

Link to comment
Share on other sites

Ok cool. Thank you

jlLQ2fy.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.