Skip to main content

Questions tagged [redeclare]

The tag has no usage guidance.

redeclare
0 votes
1 answer
48 views

How can I solve Fatal error: Cannot redeclare function... in a wordpress shortcode function

`I need to display nested child taxonomies and list its posts. This is what I am trying to get Its working, but I need to use the fuction as a shortcode. Getting "Fatal error: Cannot redeclare ...
Arun Gopal's user avatar
2 votes
1 answer
79 views

Redeclare "==" operator inside an extension type - Dart

I cannot redeclare the "==" operator inside an extension type extension type Compare(List<int> types) { @redeclare bool operator ==(List<int> other) =>true; } I get ...
Jaafar Melhem's user avatar
0 votes
0 answers
44 views

Error: "redeclare" annotation is undefined -Dart

I'm trying to use 'redeclare' annotation inside extension type in dart extension type MyString(String _) implements String { // Replaces 'String.operator[]' @redeclare int operator [](int index) ...
Jaafar Melhem's user avatar
0 votes
1 answer
67 views

pleaceable function with replaceable parameter lead to warning in Dymola

I'm working with several sets of different hardware data stored in constant records. Sets share some common data which are consewuently common in the records. In order to simplify the usage by user, ...
AngeliqueR's user avatar
4 votes
1 answer
148 views

Modelica: Can a replaceable model of a component within an array of components be redeclared individually?

When instantiating an array of components in Modelica, parameters can be passed in the modifier as an array as well to parametrize each component in the array individually. If the Class of the ...
Konrad's user avatar
  • 43
1 vote
2 answers
523 views

Wordpress Admin Panel Show Fatal error: Cannot redeclare wlwmanifest_link() (previously declared in

Fatal error: Cannot redeclare wlwmanifest_link() (previously declared in /home/freefire/public_html/wp-includes/general-template.php:3382) in /home/freefire/public_html/wp-includes/deprecated.php on ...
Rakib Pramanik's user avatar
1 vote
1 answer
2k views

Cannot redeclare get_page_by_title()

I'm not sure what happened, there's a fatal error on my website: Fatal error: Cannot redeclare get_page_by_title() (previously declared in /home/hamburgerasia/public_html/wp-includes/post.php:5778) in ...
Jasmyin Yeap's user avatar
0 votes
3 answers
448 views

(Javascript) Why declare CONST ARRAY in LOOP doesn't cause error [duplicate]

As far as I know, it is not possible to redeclare a const array. However when I declare arr inside the loop, it seems that arr is redeclare for each iteration. I don't understand this situation, does ...
egg24's user avatar
  • 9
2 votes
1 answer
72 views

Why does a redeclared private variable in an extended class is not recognised by a function but a redeclared protected one is in a PHP object?

If I make a mother class, with some private variable declared, and some function that uses that private value, and then extend it into a daughter class, redeclaring that private variable, the ...
algo's user avatar
  • 118
-3 votes
1 answer
277 views

Overriding, redeclaring, hiding and redefining of methods in classes, interfaces and classes implementing interfaces [duplicate]

Would it be correct to say that static methods in a class extended with a class, in an interface extended with an interface and in an interface implemented by a class can only be redeclared in the ...
Oyst's user avatar
  • 1
0 votes
2 answers
149 views

Is there any other elegant way to redeclare both type AND values in nested modelica models

I have a set of nested models and sub-models, as well as records. Here is the simple example: package Unnamed1 record A Real a; end A; record B extends A; Real b; end B; record ...
AngeliqueR's user avatar
2 votes
1 answer
180 views

How to 'undeclare' a custom function in a loop

I am collecting a series of php files and testing to see if a single function returns valid output. To facilitate the process, all their functions are named identically. So then I can run: foreach($...
George's user avatar
  • 29
0 votes
1 answer
2k views

Cannot redeclare functions.php in child theme (wordpress)

I'm getting error in child's functions.php. What is wrong here? Fatal error: Cannot redeclare wpst_get_filter_title() (previously declared in .../functions.php:20) in .../functions.php on line ... ...
Markus's user avatar
  • 1
1 vote
1 answer
41 views

Run a function inside a worpress shortcode php function

I am trying to create a shortcode to connect to an API but there is a problem with the shortcode. I know that it is because a function is inside a functinon but I can't figure out how to fix. I tried ...
German Pericon's user avatar
0 votes
1 answer
69 views

Joomla "Fatal error: Cannot redeclare jblogerror() in on line 0"

Here is a weird problem i'm facing; after updating Joomla to the latest version, website failed to up load but, as i've made a backup manually from these folders: administrator bin cli components ...
Burzum's user avatar
  • 190

15 30 50 per page
1
2 3 4 5 6