Jump to content

Any WordPress expert around here?


Bootex

Recommended Posts

Hi, i'm new to php when i mean new, i mean from a scale from 1/10 i'm -5  :suicide: .

 

Well my problem is that i have a custom WordPress plugin ( audio player / store ) to sell my music ( beats ) based on a WordPress plugin called (music store), "everything is fine" the shop work fine... but im getting a lot php error from 3 files which i attached into this post.

 

here the the php errors: :confused:

PHP Notice:  Undefined index: no_options_admin in /root/wp/plugins/music-store/include/options/options.php on line 4
PHP Notice:  Undefined index: std in /root/wp/plugins/music-store/include/options/options.class.php on line 22
PHP Notice:  Undefined variable: shortname in /root/wp/plugins/music-store/include/options/options.php on line 48
PHP Notice:  Undefined variable: php in /root/wp/plugins/music-store/include/options/options.php on line 56
PHP Notice:  Undefined variable: css in /root/wp/plugins/music-store/include/options/options.php on line 64
PHP Notice:  Undefined variable: shortname in /root/wp/plugins/music-store/include/options/options.php on line 70
PHP Notice:  Undefined variable: js in /root/wp/plugins/music-store/include/options/options.php on line 72
PHP Notice:  Undefined variable: shortname in /root/wp/plugins/music-store/include/options/options.php on line 76
PHP Notice:  Undefined index: options in /root/wp/plugins/music-store/include/options/options.php on line 87
PHP Notice:  Undefined index: std in /root/wp/plugins/music-store/include/options/options.php on line 95
PHP Notice:  Undefined index: json in /root/wp/plugins/music-store/include/options/options.php on line 108
PHP Notice:  Undefined index: nohacks in /root/wp/plugins/music-store/include/options/options.php on line 191
PHP Notice:  Undefined variable: no_hacks in /root/wp/plugins/music-store/include/options/options.php on line 192
PHP Notice:  Undefined index: music_store_embed_page in /root/wp/plugins/music-store/include/options/options.php on line 229
PHP Notice:  Undefined index: post_types in /root/wp/plugins/music-store/include/options/options.php on line 229
PHP Notice:  Undefined index: taxonomies in /root/wp/plugins/music-store/include/options/options.php on line 229
PHP Notice:  Undefined index: auto_save_thumbnails in /root/wp/plugins/music-store/include/options/options.php on line 229
PHP Notice:  Undefined index: music-store_meta in /root/wp/plugins/music-store/include/options/options.php on line 229
PHP Notice:  Undefined variable: globals in /root/wp/plugins/music-store/include/options/options.php on line 252
PHP Notice:  Undefined index: music_store_fullscreen in /root/wp/plugins/music-store/include/options/options.php on line 229
PHP Notice:  Undefined index: sounclick_show_likes in /root/wp/plugins/music-store/include/options/options.php on line 229
PHP Notice:  Undefined index: cart_return in /root/wp/plugins/music-store/music-store.php on line 617
PHP Notice:  Undefined index: message in /root/wp/plugins/music-store/music-store.php on line 617
PHP Notice:  Undefined index: message in /root/wp/plugins/music-store/music-store.php on line 64
PHP Notice:  Undefined variable: song_name in /root/wp/plugins/music-store/music-store.php on line 93
PHP Notice:  Undefined variable: fullscreen in /root/wp/plugins/music-store/music-store.php on line 99
PHP Notice:  Undefined variable: embed in /root/wp/plugins/music-store/music-store.php on line 99
PHP Notice:  Undefined variable: return in /root/wp/plugins/music-store/music-store.php on line 940
PHP Notice:  Undefined variable: return in /root/wp/plugins/music-store/music-store.php on line 940
PHP Notice:  Undefined index: download in /root/wp/plugins/music-store/music-store.php on line 790
PHP Notice:  Trying to get property of non-object in /root/wp/plugins/music-store/music-store.php on line 1104
PHP Notice:  Undefined index: secret in /root/wp/plugins/music-store/music-store.php on line 1110
PHP Notice:  Undefined index: checkbox_color in /root/wp/plugins/music-store/music-store.php on line 1176

 I really appreciate any kind of help ;D

 

Thanks You

 

-Alec Z.

music-store.php

options.php

options.class.php

Link to comment
Share on other sites

These are all notices, and are being shown because the code is written, well, poorly.  

All of these are just notices that the script is trying to use variables/indexes that do not exist.  The author did not check the variables before trying to use them.

You have a few choices:

A: ask the author to fix the script (recommended).
B: fix the script yourself, by adding in some validation.

C: suppress the notices through the php.ini and hope everything works fine (not recommended).

Example

 

$std = $option['std']; //this is one of the indexes listed in the notices. 
 
//a more proper way is to check if this index exists before using it.
$std = !empty($option['std']) ? $option['std'] : null; //if the index 'std' in the $options array is not empty, then assign it to $std, otherwise assign 'null' to the variable $std.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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.