{"id":2558,"date":"2022-08-30T15:25:52","date_gmt":"2022-08-30T15:25:52","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/02\/03\/how-do-i-store-datepicker-time-in-a-sqlite-database-mine-keeps-crashing-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:25:52","modified_gmt":"2022-08-30T15:25:52","slug":"how-do-i-store-datepicker-time-in-a-sqlite-database-mine-keeps-crashing-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-do-i-store-datepicker-time-in-a-sqlite-database-mine-keeps-crashing-collection-of-common-programming-errors\/","title":{"rendered":"How do I store DatePicker Time in a SQLite database? Mine keeps crashing-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve created a simple record keeping application using various resources around the internet. I&#8217;m able to successfully store text data &#8211; however when I attempt to incorporate a <code>TimePicker<\/code> I end up crashing my entire app. I was instructed how to add this functionality in a previous post &#8211; but when I attempt to add fields for the timepicker data the entire app closes (and of course does not save the data)<\/p>\n<p>How do I store TimePicker Data in my simple record keeping app?<\/p>\n<p>I was instructed (by the user above) to use the following:<\/p>\n<pre><code>CREATE TABLE ...... dtField date, tmpName Text.....\n<\/code><\/pre>\n<p>use following for saving date as text<\/p>\n<p>\/\/sample date format &#8211; 2013-03-21 13:12:00<\/p>\n<pre><code>android.text.format.DateFormat.format(\"yyyy-MM-dd hh:mm:ss\", dtDate.getTime())\n<\/code><\/pre>\n<p>The first half of which I&#8217;ve implemented (I believe). The second half I&#8217;m not too sure how to implement correctly (the first thing I need help with), and my app is force closing as well after making these changes (the second thing I need help with.)<\/p>\n<p>Any help resolving this issue is greatly appreciated! (I&#8217;m a bit of a noob &#8211; so the more detailed the instructions &#8211; the better!)<\/p>\n<p>Thanks in advance,<\/p>\n<p>Amani Swann<\/p>\n<p>P.S.<\/p>\n<p>I updated the source code below with Robby Pond&#8217;s suggested:<\/p>\n<p>Replace<\/p>\n<p>EditText timeEt with<\/p>\n<p>TimePicker timeEt<\/p>\n<p>but I&#8217;m im still unable to run the code shown below.<\/p>\n<p>Can someone take a look at the logcat or problems log and let me know if you can tell what is causing the issue at this point? The suggestion by Robby Pond was helpful but I have a deeper issue with the (current) source code below.<\/p>\n<p>P.S.<\/p>\n<p>I know the error cannot be resolved to a type usually indicates there is a class missing or perhaps an XML issue but the error indicates &#8216;TimePicker cannot be resolved to a type&#8217; however I don&#8217;t have a TimePicker.Java &#8211; I just want to use the timepicker buttons coded in the XML below.<\/p>\n<p>XML: DATA INPUT<\/p>\n<pre><code>\n\n\n\n\n  \n\n  \n\n\n\n\n\n\n\n    \n\n    \n\n\n\n\n\n\n\n\n    \n\n    \n\n\n \n\n \n\n \n\n\n\n\n\n\n  \n \n \n<\/code><\/pre>\n<p>JAVA: DATA INPUT<\/p>\n<pre><code>package com.nfc.linkingmanager;\n\n\nimport android.app.Activity;\nimport android.app.AlertDialog;\nimport android.os.AsyncTask;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.view.View.OnClickListener;\nimport android.widget.Button;\nimport android.widget.EditText;\n\npublic class AddEditCountry extends Activity {\n\n private long rowID; \n private EditText nameEt;\n private EditText capEt;\n private EditText codeEt;\n private TimePicker timeEt;\n\n   @Override\n   public void onCreate(Bundle savedInstanceState) \n   {\n      super.onCreate(savedInstanceState); \n      setContentView(R.layout.add_country);\n\n      nameEt = (EditText) findViewById(R.id.nameEdit);\n      capEt = (EditText) findViewById(R.id.capEdit);\n      codeEt = (EditText) findViewById(R.id.codeEdit);\n      timeEt = (TimePicker) findViewById(R.id.timeEdit);\n\n\n      Bundle extras = getIntent().getExtras(); \n\n      if (extras != null)\n      {\n         rowID = extras.getLong(\"row_id\");\n         nameEt.setText(extras.getString(\"name\"));  \n         capEt.setText(extras.getString(\"cap\"));  \n         codeEt.setText(extras.getString(\"code\"));  \n         timeEt.setText(extras.getString(\"time\"));  \n      }\n\n      Button saveButton =(Button) findViewById(R.id.saveBtn);\n      saveButton.setOnClickListener(new OnClickListener() {\n\n          public void onClick(View v) \n          {\n             if (nameEt.getText().length() != 0)\n             {\n                AsyncTask saveContactTask = \n                   new AsyncTask() \n                   {\n                      @Override\n                      protected Object doInBackground(Object... params) \n                      {\n                         saveContact();\n                         return null;\n                      }\n\n                      @Override\n                      protected void onPostExecute(Object result) \n                      {\n                         finish();\n                      }\n                   }; \n\n                saveContactTask.execute((Object[]) null); \n             }\n\n             else\n             {\n                AlertDialog.Builder alert = new AlertDialog.Builder(AddEditCountry.this);\n                alert.setTitle(R.string.errorTitle); \n                alert.setMessage(R.string.errorMessage);\n                alert.setPositiveButton(R.string.errorButton, null); \n                alert.show();\n             }\n          } \n     });\n   }\n\n   private void saveContact() \n   {\n      DatabaseConnector dbConnector = new DatabaseConnector(this);\n\n      if (getIntent().getExtras() == null)\n      {\n          dbConnector.insertContact(nameEt.getText().toString(),\n                  capEt.getText().toString(),\n                  timeEt.getText().toString(),\n                  codeEt.getText().toString());\n      }\n      else\n      {\n         dbConnector.updateContact(rowID,\n            nameEt.getText().toString(),\n            capEt.getText().toString(),\n            timeEt.getText().toString(),\n            codeEt.getText().toString());\n      }\n   }\n}\n<\/code><\/pre>\n<p>XML: DATA OUTPUT<\/p>\n<pre><code>\n\n\n\n            \n     \n              \n  \n\n           \n              \n              \n  \n\n           \n              \n              \n  \n           \n              \n              \n  \n            \n              \n              \n  \n\n<\/code><\/pre>\n<p>DATA OUTPUT: JAVA<\/p>\n<pre><code>import android.app.Activity;\nimport android.app.AlertDialog;\nimport android.content.DialogInterface;\nimport android.content.Intent;\nimport android.database.Cursor;\nimport android.os.AsyncTask;\nimport android.os.Bundle;\nimport android.view.Menu;\nimport android.view.MenuInflater;\nimport android.view.MenuItem;\nimport android.widget.TextView;\n\npublic class ViewCountry extends Activity {\n\n   private long rowID;\n   private TextView nameTv;\n   private TextView capTv;\n   private TextView codeTv; \n   private TextView timeTv; \n\n   @Override\n   public void onCreate(Bundle savedInstanceState) \n   {\n      super.onCreate(savedInstanceState);\n      setContentView(R.layout.view_country);\n\n      setUpViews();\n      Bundle extras = getIntent().getExtras();\n      rowID = extras.getLong(CountryList.ROW_ID); \n   }\n\n   private void setUpViews() {\n       nameTv = (TextView) findViewById(R.id.nameText);\n       capTv = (TextView) findViewById(R.id.capText);\n       timeTv = (TextView) findViewById(R.id.timeText);\n       codeTv = (TextView) findViewById(R.id.codeText);\n   }\n\n   @Override\n   protected void onResume()\n   {\n      super.onResume();\n      new LoadContacts().execute(rowID);\n   } \n\n   private class LoadContacts extends AsyncTask \n   {\n      DatabaseConnector dbConnector = new DatabaseConnector(ViewCountry.this);\n\n      @Override\n      protected Cursor doInBackground(Long... params)\n      {\n         dbConnector.open();\n         return dbConnector.getOneContact(params[0]);\n      } \n\n      @Override\n      protected void onPostExecute(Cursor result)\n      {\n         super.onPostExecute(result);\n\n         result.moveToFirst();\n         \/\/ get the column index for each data item\n         int nameIndex = result.getColumnIndex(\"name\");\n         int capIndex = result.getColumnIndex(\"cap\");\n         int codeIndex = result.getColumnIndex(\"code\");\n         int timeIndex = result.getColumnIndex(\"time\");\n\n         nameTv.setText(result.getString(nameIndex));\n         capTv.setText(result.getString(capIndex));\n         timeTv.setText(result.getString(timeIndex));\n         codeTv.setText(result.getString(codeIndex));\n\n         result.close();\n         dbConnector.close();\n      }\n   } \n\n\n   @Override\n   public boolean onCreateOptionsMenu(Menu menu) \n   {\n      super.onCreateOptionsMenu(menu);\n      MenuInflater inflater = getMenuInflater();\n      inflater.inflate(R.menu.view_country_menu, menu);\n      return true;\n   }\n\n   @Override\n   public boolean onOptionsItemSelected(MenuItem item) \n   {\n      switch (item.getItemId())\n      {\n         case R.id.editItem:\n            Intent addEditContact =\n               new Intent(this, AddEditCountry.class);\n\n            addEditContact.putExtra(CountryList.ROW_ID, rowID);\n            addEditContact.putExtra(\"name\", nameTv.getText());\n            addEditContact.putExtra(\"cap\", capTv.getText());\n            addEditContact.putExtra(\"time\", timeTv.getText());\n            addEditContact.putExtra(\"code\", codeTv.getText());\n            startActivity(addEditContact); \n            return true;\n\n         case R.id.deleteItem:\n            deleteContact();\n            return true;\n\n         default:\n            return super.onOptionsItemSelected(item);\n      } \n   }\n\n   private void deleteContact()\n   {\n\n      AlertDialog.Builder alert = new AlertDialog.Builder(ViewCountry.this);\n\n      alert.setTitle(R.string.confirmTitle); \n      alert.setMessage(R.string.confirmMessage); \n\n      alert.setPositiveButton(R.string.delete_btn,\n         new DialogInterface.OnClickListener()\n         {\n            public void onClick(DialogInterface dialog, int button)\n            {\n               final DatabaseConnector dbConnector = \n                  new DatabaseConnector(ViewCountry.this);\n\n               AsyncTask deleteTask =\n                  new AsyncTask()\n                  {\n                     @Override\n                     protected Object doInBackground(Long... params)\n                     {\n                        dbConnector.deleteContact(params[0]); \n                        return null;\n                     } \n\n                     @Override\n                     protected void onPostExecute(Object result)\n                     {\n                        finish(); \n                     }\n                  };\n\n               deleteTask.execute(new Long[] { rowID });               \n            }\n         }\n      );\n\n      alert.setNegativeButton(R.string.cancel_btn, null).show();\n   }\n}\n<\/code><\/pre>\n<p>DATABASE CONNECTOR JAVA:<\/p>\n<pre><code>import android.content.ContentValues;\nimport android.content.Context;\nimport android.database.Cursor;\nimport android.database.SQLException;\nimport android.database.sqlite.SQLiteDatabase;\n\n\npublic class DatabaseConnector {\n\nprivate static final String DB_NAME = \"WorldCountries\";\nprivate SQLiteDatabase database;\nprivate DatabaseOpenHelper dbOpenHelper;\n\npublic DatabaseConnector(Context context) {\n    dbOpenHelper = new DatabaseOpenHelper(context, DB_NAME, null, 1);\n}\n\n   public void open() throws SQLException \n   {\n      \/\/open database in reading\/writing mode\n      database = dbOpenHelper.getWritableDatabase();\n   } \n\n   public void close() \n   {\n      if (database != null)\n         database.close();\n   }       \n\n   public void insertContact(String name, String cap, String code, String time) \n           {\n              ContentValues newCon = new ContentValues();\n              newCon.put(\"name\", name);\n              newCon.put(\"cap\", cap);\n              newCon.put(\"time\", time);\n              newCon.put(\"code\", code);\n\n              open();\n              database.insert(\"country\", null, newCon);\n              close();\n           }\n\n\n           public void updateContact(long id, String name, String cap,String code, String time) \n           {\n              ContentValues editCon = new ContentValues();\n              editCon.put(\"name\", name);\n              editCon.put(\"cap\", cap);\n              editCon.put(\"time\", time);\n              editCon.put(\"code\", code);\n\n              open();\n              database.update(\"country\", editCon, \"_id=\" + id, null);\n              close();\n           }\n\n\n           public Cursor getAllContacts() \n           {\n              return database.query(\"country\", new String[] {\"_id\", \"name\"}, \n                 null, null, null, null, \"name\");\n           }\n\n           public Cursor getOneContact(long id) \n           {\n              return database.query(\"country\", null, \"_id=\" + id, null, null, null, null);\n           }\n\n           public void deleteContact(long id) \n           {\n              open(); \n              database.delete(\"country\", \"_id=\" + id, null);\n              close();\n           }\n}\n<\/code><\/pre>\n<p>DATABASE HELPER JAVA:<\/p>\n<pre><code>import android.content.Context;\nimport android.database.sqlite.SQLiteDatabase;\nimport android.database.sqlite.SQLiteDatabase.CursorFactory;\nimport android.database.sqlite.SQLiteOpenHelper;\n\npublic class DatabaseOpenHelper extends SQLiteOpenHelper {\n\npublic DatabaseOpenHelper(Context context, String name,\n        CursorFactory factory, int version) {\n    super(context, name, factory, version);\n}\n\n@Override\npublic void onCreate(SQLiteDatabase db) {\n    String createQuery = \"CREATE TABLE country (_id integer primary key autoincrement,name, cap, code, time);\";                 \n    db.execSQL(createQuery);        \n}\n\n@Override\npublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n\n}\n\n}\n<\/code><\/pre>\n<p>LOGCAT DATA:<\/p>\n<pre><code>03-21 17:17:24.276: I\/Adreno200-EGLSUB(8655): : Format RGBA_8888.\n03-21 17:17:24.276: D\/memalloc(8655): ion: Mapped buffer base:0x5ca41000 size:614400 offset:0 fd:57\n03-21 17:17:24.276: E\/(8655): Can't open file for reading\n03-21 17:17:24.276: E\/(8655): Can't open file for reading\n03-21 17:17:24.376: D\/memalloc(8655): ion: Mapped buffer base:0x5d12e000 size:614400 offset:0 fd:61\n03-21 17:17:26.188: D\/Activity(8655): Activity.onPause(), editTextTapSensorList size: 0\n03-21 17:17:26.268: I\/Adreno200-EGLSUB(8655): : Format  RGBA_8888.\n03-21 17:17:26.278: D\/memalloc(8655): ion: Mapped buffer base:0x5d4ce000 size:614400  offset:0 fd:68\n03-21 17:17:26.318: D\/memalloc(8655): ion: Mapped buffer base:0x5d937000 size:614400 offset:0 fd:72\n03-21 17:17:26.328: D\/memalloc(8655): ion: Unmapping buffer  base:0x5ca41000 size:614400\n03-21 17:17:26.328: D\/memalloc(8655): ion: Unmapping buffer  base:0x5d12e000 size:614400\n03-21 17:17:26.468: D\/Activity(8655): Activity.onPause(), editTextTapSensorList size: 0\n03-21 17:17:26.549: D\/memalloc(8655): ion: Mapped buffer base:0x5c929000 size:614400 offset:0 fd:54\n03-21 17:17:26.619: W\/IInputConnectionWrapper(8655): getExtractedText on inactive  InputConnection\n03-21 17:17:26.639: W\/IInputConnectionWrapper(8655): getExtractedText on inactive InputConnection\n03-21 17:17:48.322: D\/Activity(8655): Activity.onPause(), editTextTapSensorList size: 0\n03-21 17:17:48.342: W\/dalvikvm(8655): threadid=1: thread exiting with uncaught exception (group=0x410889d8)\n03-21 17:17:48.352: E\/AndroidRuntime(8655): FATAL EXCEPTION: main\n03-21 17:17:48.352: E\/AndroidRuntime(8655): java.lang.Error: Unresolved compilation  problems: \n03-21 17:17:48.352: E\/AndroidRuntime(8655):     TimePicker cannot be resolved to a type\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     TimePicker cannot be resolved to a type\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     TimePicker cannot be resolved to a type\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     timeEdit cannot be resolved or is not a field\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     TimePicker cannot be resolved to a  type\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     TimePicker cannot be resolved to a  type\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     TimePicker cannot be resolved to a  type\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at  com.nfc.linkingmanager.AddEditCountry.(AddEditCountry.java:19)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at java.lang.Class.newInstanceImpl(Native Method)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at  java.lang.Class.newInstance(Class.java:1319)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at  android.app.Instrumentation.newActivity(Instrumentation.java:1025)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1875)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1985)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at android.app.ActivityThread.access$600(ActivityThread.java:127)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1151)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at android.os.Handler.dispatchMessage(Handler.java:99)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at android.os.Looper.loop(Looper.java:137)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at android.app.ActivityThread.main(ActivityThread.java:4477)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at  java.lang.reflect.Method.invokeNative(Native Method)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at java.lang.reflect.Method.invoke(Method.java:511)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at  com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at   com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)\n03-21 17:17:48.352: E\/AndroidRuntime(8655):     at  dalvik.system.NativeStart.main(Native Method)\n<\/code><\/pre>\n<p>PROBLEMS:<\/p>\n<pre><code>    Description Resource    Path    Location    Type\nuser3SettingsSave cannot be resolved or is not a field  User3Settings.java  \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 35 Java Problem\nThe import android.content.Context is never used    AppActivity.java    \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 5  Java Problem\nThe import android.view.View.OnClickListener is never used  AppActivity.java    \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 13 Java Problem\nThe value of the field AppActivity.button1 is not used  AppActivity.java    \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 18 Java Problem\nThe value of the field AppActivity.button2 is not used  AppActivity.java    \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 18 Java Problem\nuser3Tap cannot be resolved to a type   User3Settings.java  \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 40 Java Problem\nThe value of the field AppActivity.button3 is not used  AppActivity.java    \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 18 Java Problem\nTimePicker cannot be resolved to a type AddEditCountry.java \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 19 Java Problem\nTimePicker cannot be resolved to a type AddEditCountry.java \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 30 Java Problem\nTimePicker cannot be resolved to a type AddEditCountry.java \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 30 Java Problem\nThe method deactivate() from the type Cursor is deprecated  CountryList.java    \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 52 Java Problem\nThe constructor SimpleCursorAdapter(Context, int, Cursor, String[], int[]) is deprecated    CountryList.java    \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 33 Java Problem\nThe import android.app.AlertDialog is never used    User1.java  \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 4  Java Problem\nThe import android.view.View.OnClickListener is never used  User1.java  \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 12 Java Problem\nThe method deactivate() from the type Cursor is deprecated  NewCore.java    \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 54 Java Problem\nThe constructor SimpleCursorAdapter(Context, int, Cursor, String[], int[]) is deprecated    NewCore.java    \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 35 Java Problem\nThe import android.content.DialogInterface is never used    User1.java  \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 6  Java Problem\nThe import android.widget.Button is never used  Link.java   \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 5  Java Problem\nThe import android.content.Intent is never used Link.java   \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 6  Java Problem\nThe import android.view.View.OnClickListener is never used  User1Settings.java  \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 10 Java Problem\nThe import android.view.View is never used  Link.java   \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 7  Java Problem\nThe import android.view.View.OnClickListener is never used  Link.java   \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 8  Java Problem\nTimePicker cannot be resolved to a type AddEditCountry.java \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 99 Java Problem\nTimePicker cannot be resolved to a type AddEditCountry.java \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 91 Java Problem\nTimePicker cannot be resolved to a type AddEditCountry.java \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 41 Java Problem\ntimeEdit cannot be resolved or is not a field   AddEditCountry.java \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager line 30 Java Problem\nThe method showDialog(int) from the type Activity is deprecated User2Settings.java   \/NFC Linking Manager\/src\/com\/nfc\/linkingmanager    line 37 Java Problem\n<\/code><\/pre>\n<ol>\n<li>\n<p>The timeEt field should be a TimePicker. You are getting that ClassCastException because in your activity you declared it as an EditText.<\/p>\n<p>Replace<\/p>\n<pre><code>EditText timeEt\n<\/code><\/pre>\n<p>with<\/p>\n<pre><code>TimePicker timeEt\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-02-03 02:28:01. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve created a simple record keeping application using various resources around the internet. I&#8217;m able to successfully store text data &#8211; however when I attempt to incorporate a TimePicker I end up crashing my entire app. I was instructed how to add this functionality in a previous post &#8211; but when I attempt to add [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2558","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2558"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2558\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}