Advertisement:

Author Topic: Image Sitemap notice-Undefined index: fk_i_item_id in /home/ [SOLVED]  (Read 3021 times)

PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
Reminder Plugin notice-Undefined index: fk_i_item_id in /home/ [SOLVED]
« Reply #30 on: September 28, 2017, 02:52:43 pm »
http://php.net/manual/en/language.constants.php

gues you must define it before using it

So can we define now where and how...
« Last Edit: September 29, 2017, 09:23:15 am by PostFreeOnline.Com »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Search in your plugin's files for
ER_ITEM_VALIDATED_OR_WAITING

And see the place it's being defined. Then look if in the same place all those capital letters constants are defined, except ER_ITEM_NO_SPAM

PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
Reminder Plugin notice-Undefined index: fk_i_item_id in /home/ [SOLVED]
« Reply #32 on: September 28, 2017, 03:20:46 pm »
Search in your plugin's files for
ER_ITEM_VALIDATED_OR_WAITING

And see the place it's being defined. Then look if in the same place all those capital letters constants are defined, except ER_ITEM_NO_SPAM

These are the files witch contains ER_ITEM_VALIDATED_OR_WAITING

« Last Edit: September 29, 2017, 09:23:52 am by PostFreeOnline.Com »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Search now for

_set_requirement(ER_ITEM_NO_SPAM)


Nevermind

Add to constants.txt

Code: [Select]
define('ER_ITEM_NO_PREMIUM', 15);
define('ER_ITEM_NO_SPAM', 16);

instead of

Code: [Select]
define('ER_ITEM_NO_PREMIUM', 15);


« Last Edit: September 28, 2017, 03:29:46 pm by marius-ciclistu »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
And remove your files and code form here because it's a payed plugin and you musn't share the code.

PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
Reminder plugin notice-Undefined index: fk_i_item_id in /home/ [SOLVED]
« Reply #35 on: September 28, 2017, 03:38:28 pm »
Let me check if it works...From past 10 Min No warning I think it works...But still we have to give some as system send reminder occasionally. 

I removed the code files..
« Last Edit: September 29, 2017, 09:24:32 am by PostFreeOnline.Com »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
When you are sure it's ok, you can put [SOLVED] in the first post's title @ all the topics you've opened:)

PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
Undefined Index notice for osclass/helpers/hDefines.php [SOLVED]
« Reply #37 on: September 28, 2017, 04:36:19 pm »
When you are sure it's ok, you can put [SOLVED] in the first post's title @ all the topics you've opened:)

Hi, Sure I will do that certainly

Ok After long interval this came in log. What it is for?

[28-Sep-2017 18:00:28 Asia/Kolkata] SELECT pfo_t_item.*
FROM (pfo_t_item)
WHERE pfo_t_item.b_enabled = 1
AND pfo_t_item.dt_expiration > '2017-09-26 17:00:37'
AND pfo_t_item.dt_expiration <= '2017-09-26 18:00:28'
AND pfo_t_item.b_spam  = 0
[28-Sep-2017 18:00:28 Asia/Kolkata] 2017-09-26 17:00:37   2017-09-26 18:00:28

[28-Sep-2017 19:00:30 Asia/Kolkata] 2017-09-26 18:00:28   2017-09-26 19:00:30
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: pk_i_id in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 497
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_city in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 498
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_title in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 499
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: pk_i_id in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 497
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_city in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 498
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_title in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 499
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: pk_i_id in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 497
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_city in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 498
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_title in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 499


[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Notice:  Undefined index: error in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php on line 161
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Warning:  Invalid argument supplied for foreach() in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php on line 161
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Notice:  Undefined index: error in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php on line 116
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Warning:  Invalid argument supplied for foreach() in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php on line 116
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Notice:  Undefined index: error in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/index.php on line 226
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Warning:  Invalid argument supplied for foreach() in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/index.php on line 226
« Last Edit: September 30, 2017, 06:22:04 am by PostFreeOnline.Com »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
 SELECT pfo_t_item.*
FROM (pfo_t_item)
WHERE pfo_t_item.b_enabled = 1
AND pfo_t_item.dt_expiration > '2017-09-26 17:00:37'
AND pfo_t_item.dt_expiration <= '2017-09-26 18:00:28'
AND pfo_t_item.b_spam  = 0

This is a SQL instruction

[28-Sep-2017 19:00:30 Asia/Kolkata] 2017-09-26 18:00:28   2017-09-26 19:00:30
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: pk_i_id in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 497
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_city in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 498
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_title in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 499
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: pk_i_id in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 497
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_city in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 498
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_title in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 499
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: pk_i_id in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 497
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_city in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 498
[28-Sep-2017 19:32:17 Asia/Kolkata] PHP Notice:  Undefined index: s_title in /home/scorp4hj/public_html/postfreeonline.com/oc-includes/osclass/helpers/hDefines.php on line 499

These are similar with those that you resolved with isset.

[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Notice:  Undefined index: error in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php on line 161
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Warning:  Invalid argument supplied for foreach() in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php on line 161
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Notice:  Undefined index: error in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php on line 116
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Warning:  Invalid argument supplied for foreach() in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php on line 116
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Notice:  Undefined index: error in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/index.php on line 226
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Warning:  Invalid argument supplied for foreach() in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/index.php on line 226

These are from your avatar plugin


PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
Notice-Undefined index: Osclass/helpers and Madhouse Avatar plugin [SOLVED]
« Reply #39 on: September 29, 2017, 08:35:17 am »
So Can you help me resolving these too... :)

What Code Should I put in oc-includes/osclass/helpers/hDefines.php on which lines?

Below are the file


oc-includes/osclass/helpers/hDefines.php

oc-content/plugins/madhouse_avatar/index.php
oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php

             
« Last Edit: September 30, 2017, 06:22:26 am by PostFreeOnline.Com »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Image Sitemap notice-Undefined index: fk_i_item_id in /home/ [SOLVED]
« Reply #40 on: September 29, 2017, 10:13:37 am »
You do it in simillar way with isset function.

For the rest of the notices I have no idea.

PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
PHP Notice: Undefined index: pk_i_id in osclass/helpers/hDefines.php [SOLVED]
« Reply #41 on: September 29, 2017, 10:51:59 am »
You do it in simillar way with isset function.

For the rest of the notices I have no idea.


Here is the code from line 497 to 500

            $url = str_replace('{ITEM_ID}', osc_sanitizeString($item['pk_i_id']), $url);
            $url = str_replace('{ITEM_CITY}', osc_sanitizeString($item['s_city']), $url);
            $url = str_replace('{ITEM_TITLE}', osc_sanitizeString(str_replace(',', '-', $item['s_title'])), $url);
            $url = str_replace('?', '', $url);

So what to replace with below code (Is it correct)

(For line 497)             

                if( isset($item['pk_i_id'])) { $url = Category::newInstance()->hierarchy($item['pk_i_id']);
                for ($i = (count($url)); $i > 0; $i--) {
                    $sanitized_categories[] = $url[$i - 1]['s_slug'];
                } }

(For line 498)             

                if( isset($item['s_city'])) { $url = Category::newInstance()->hierarchy($item['s_city']);
                for ($i = (count($url)); $i > 0; $i--) {
                    $sanitized_categories[] = $url[$i - 1]['s_slug'];
                } }

(For line 499)             

                if( isset($item['s_title'])) { $url = Category::newInstance()->hierarchy($item['s_title']);
                for ($i = (count($url)); $i > 0; $i--) {
                    $sanitized_categories[] = $url[$i - 1]['s_slug'];
                } }



Complete code below

                if( isset($item['pk_i_id'])) { $url = Category::newInstance()->hierarchy($item['pk_i_id']);
                for ($i = (count($url)); $i > 0; $i--) {
                    $sanitized_categories[] = $url[$i - 1]['s_slug'];
                } }
                if( isset($item['s_city'])) { $url = Category::newInstance()->hierarchy($item['s_city']);
                for ($i = (count($url)); $i > 0; $i--) {
                    $sanitized_categories[] = $url[$i - 1]['s_slug'];
                } }
                if( isset($item['s_title'])) { $url = Category::newInstance()->hierarchy($item['s_title']);
                for ($i = (count($url)); $i > 0; $i--) {
                    $sanitized_categories[] = $url[$i - 1]['s_slug'];
                } }


Instead of

            $url = str_replace('{ITEM_ID}', osc_sanitizeString($item['pk_i_id']), $url);
            $url = str_replace('{ITEM_CITY}', osc_sanitizeString($item['s_city']), $url);
            $url = str_replace('{ITEM_TITLE}', osc_sanitizeString(str_replace(',', '-', $item['s_title'])), $url);
            $url = str_replace('?', '', $url);


Is it correctly created? Because I tried this but its not working giving more and more warnings
« Last Edit: September 29, 2017, 11:05:09 am by PostFreeOnline.Com »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: Image Sitemap notice-Undefined index: fk_i_item_id in /home/ [SOLVED]
« Reply #42 on: September 29, 2017, 10:55:14 am »
No.
            $url = str_replace('{ITEM_ID}', osc_sanitizeString($item['pk_i_id']), $url);
            $url = str_replace('{ITEM_CITY}', osc_sanitizeString($item['s_city']), $url);
            $url = str_replace('{ITEM_TITLE}', osc_sanitizeString(str_replace(',', '-', $item['s_title'])), $url);
            $url = str_replace('?', '', $url);

gets replaced by

            if( isset($item['pk_i_id']))             $url = str_replace('{ITEM_ID}', osc_sanitizeString($item['pk_i_id']), $url);
            if( isset($item['s_city']))             $url = str_replace('{ITEM_CITY}', osc_sanitizeString($item['s_city']), $url);
            if( isset($item['s_title']))             $url = str_replace('{ITEM_TITLE}', osc_sanitizeString(str_replace(',', '-', $item['s_title'])), $url);
            $url = str_replace('?', '', $url);


PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
PHP Notice:Undefined index:osclass/helpers/hDefines.php[SOLVED by marius-ciclis]
« Reply #43 on: September 29, 2017, 11:02:32 am »
No.
            $url = str_replace('{ITEM_ID}', osc_sanitizeString($item['pk_i_id']), $url);
            $url = str_replace('{ITEM_CITY}', osc_sanitizeString($item['s_city']), $url);
            $url = str_replace('{ITEM_TITLE}', osc_sanitizeString(str_replace(',', '-', $item['s_title'])), $url);
            $url = str_replace('?', '', $url);

gets replaced by

            if( isset($item['pk_i_id']))             $url = str_replace('{ITEM_ID}', osc_sanitizeString($item['pk_i_id']), $url);
            if( isset($item['s_city']))             $url = str_replace('{ITEM_CITY}', osc_sanitizeString($item['s_city']), $url);
            if( isset($item['s_title']))             $url = str_replace('{ITEM_TITLE}', osc_sanitizeString(str_replace(',', '-', $item['s_title'])), $url);
            $url = str_replace('?', '', $url);


Yes this one working...All Notices gone
« Last Edit: September 30, 2017, 06:24:26 am by PostFreeOnline.Com »

PostFreeOnline.Com

  • Jr. Member
  • **
  • Posts: 77
  • PostFreeOnline.Com
Undefined Index: error in Madhouse Avatar [SOLVED by marius-ciclistu]
« Reply #44 on: September 29, 2017, 12:15:36 pm »
Can you help me with this also. Is there any Idea about below Notice?

Below is the code for
---------------------------------
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Warning:  Invalid argument supplied for foreach() in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php on line 116

(Action.php) From Line 116 to 117

foreach ($aResources['error'] as $key => $error) {
                $bool_img = false;


-----------------------------

[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Notice:  Undefined index: error in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/classes/Madhouse/Avatar/Actions.php on line 161

(Action.php) From Line 161 to 164

foreach ($aResources['error'] as $key => $error) {
                $bool_img = false;
                if ($error == UPLOAD_ERR_OK) {
                    // check mime file

------------------------------
PATH   /public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/index.php

(index.php) From Line 225 to 231

[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Notice:  Undefined index: error in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/index.php on line 226
[28-Sep-2017 20:15:44 Asia/Kolkata] PHP Warning:  Invalid argument supplied for foreach() in /home/scorp4hj/public_html/postfreeonline.com/oc-content/plugins/madhouse_avatar/index.php on line 226



                   if ($status != 'error') {
               foreach ($files['error'] as $key => $error) {
                   $tmpName = $files['tmp_name'][$key];
                   if ($tmpName != "") {
                      if( $error == UPLOAD_ERR_OK) {
                          Madhouse_Avatar_Actions::deleteAllResourcesFromUser($userId, false);
                          Madhouse_Avatar_Actions::process($tmpName, $userId);

« Last Edit: September 30, 2017, 06:23:18 am by PostFreeOnline.Com »