Please, What error?( localhost wordpress psyplay my test )

Tommy

Member
Jan 8, 2020
33
4
8
Help me Please ....... 1) constant dttp - assumed 'dttp' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\testmov\wp-content\themes\wordpress-movie-theme-psy\inc\temporadas\metabox.php on line 163


2) 28020 28021 Warning: Use of undefined constant DOO_VERSION - assumed 'DOO_VERSION' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\testmov\wp-content\themes\wordpress-movie-theme-psy\functions.php on line 2021
 

jancok

Active member
Oct 6, 2019
154
99
43
Graveyard
www.presidenri.go.id
Help me Please ....... 1) constant dttp - assumed 'dttp' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\testmov\wp-content\themes\wordpress-movie-theme-psy\inc\temporadas\metabox.php on line 163


2) 28020 28021 Warning
: Use of undefined constant DOO_VERSION - assumed 'DOO_VERSION' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\testmov\wp-content\themes\wordpress-movie-theme-psy\functions.php on line 2021

Post your codes here.
C:\xampp\htdocs\testmov\wp-content\themes\wordpress-movie-theme-psy\inc\temporadas\metabox.php on line 163

and

C:\xampp\htdocs\testmov\wp-content\themes\wordpress-movie-theme-psy\functions.php on line 2021

you might forgot to add $ to your var or quotes (or double quotes) around your string.
 
  • Like
Reactions: Tommy

ckeeper

Well-known member
Nov 8, 2019
623
376
63
Check out the lines in those files giving error, this could be easily fixed by adding 'to the constant'
Here is an example
Code:
This is just a sample code you will have different codes in your files.

$_SERVER[REQUEST_URI] (so without the ‘ marks around REQUEST_URI).

If added the ' ' and now it shows:
$_SERVER[‘REQUEST_URI’]

This should fix your issues
 
  • Like
Reactions: Tommy

CyberDeviL

Back to Life 🧬
Trusted Uploader
Aug 10, 2018
2,795
10,823
113
Earth
Then downgrade the PHP version to 7.2 / 7.0 and check if the issue is still appearing or not.
 

Tommy

Member
Jan 8, 2020
33
4
8
Post your codes here.
C:\xampp\htdocs\testmov\wp-content\themes\wordpress-movie-theme-psy\inc\temporadas\metabox.php on line 163

and

C:\xampp\htdocs\testmov\wp-content\themes\wordpress-movie-theme-psy\functions.php on line 2021

you might forgot to add $ to your var or quotes (or double quotes) around your string.
I'm beginner.😢How to do Step by step?
 

Attachments

  • wp3.PNG
    wp3.PNG
    64 KB · Views: 16
  • wp5.PNG
    wp5.PNG
    54.5 KB · Views: 17

Tommy

Member
Jan 8, 2020
33
4
8
Check out the lines in those files giving error, this could be easily fixed by adding 'to the constant'
Here is an example
Code:
This is just a sample code you will have different codes in your files.

$_SERVER[REQUEST_URI] (so without the ‘ marks around REQUEST_URI).

If added the ' ' and now it shows:
$_SERVER[‘REQUEST_URI’]

This should fix your issues
I'm beginner.😢How to do Step by step?
 

Attachments

  • wp3.PNG
    wp3.PNG
    64 KB · Views: 14
  • wp5.PNG
    wp5.PNG
    54.5 KB · Views: 10

lgokul

Well-known member
Babiato Lover
Null Master
Trusted Uploader
Jun 26, 2019
998
1,600
93
32
Planeta Vegeta
I'm beginner.😢How to do Step by step?

Replace in functions.php
first solution problem
line 2021
DOO_VERSION by '1.0.0'

suggestion copy and paste all the wrong chains, do not take capture !, as it costs us more work to solve your problem
 

ckeeper

Well-known member
Nov 8, 2019
623
376
63
I'm beginner.😢How to do Step by step?

Replace the following in files where you are getting errors
Code:
Line 2021 code issue can be fixed if you replace the existing code with the following

wp_enqueue_script('live_search', DT_DIR_URI .'/js/live.search.js', array('jquery'), 'DOO_VERSION', true );

Metabox.php code issue seems to be in line 163 in my version replace existing the code with the following

if($dttp !== "valid") {

This should fix all the issues.
Tested on my local working perfectly fine after these changes.
 

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu