Comments (8)
Message: Undefined offset: 113
File: /includes/pages/game/ShowResearchPage.class.php
Line: 48
URL: http://xxxxxxxx.xxx/2Moons/game.php?page=research
PHP-Version: 5.6.33-1+ubuntu16.04.1+deb.sury.org+1
PHP-API: apache2handler
2Moons Version: 1.8.git
Debug Backtrace:
#0 /includes/pages/game/ShowResearchPage.class.php(48): errorHandler(8, 'Undefined offse...', 'FILEPATH ...', 48, Array)
#1 /includes/pages/game/ShowResearchPage.class.php(329): ShowResearchPage->CancelBuildingFromQueue()
#2 /game.php(57): ShowResearchPage->show()
#3 {main}
Line: 48
$costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $PLANET[$elementId] + 1);
from 2moons.
Did you add some things? Like, some special researches?
I had this mistake when I modded it myself.
I'd advise you to try to change the language and to check the translation file because for what it seems, it looks like said translations are missing...
Does the same problem appear when you go in "technology"?
from 2moons.
$PLANET[$elementId]
looks wrong for me. It should be $PLANET[$resource[$elementId]]
Can you do this change locally and test if the error still exists?
from 2moons.
@Nusuminat did it help?
from 2moons.
it is about research and researches are saved under prefix_users. so it should be $USER[$resource[$elementId]]
from 2moons.
gentlemen, I did it ... and everything works perfect ...;) as for me because why you have to return raw materials;)
$costResources = BuildFunctions::getElementPrice($USER, $PLANET, $elementId, false, $PLANET[$elementId] = 0);
from 2moons.
You should do this:
a6392d7#diff-a639f1032499d4c506b2a28ff191033fR61
from 2moons.
👍
from 2moons.
Related Issues (20)
- Recall Mission Hold before it reaches Planet HOT 3
- Bug in general vision when you are receiving material from another person HOT 1
- alarm HOT 1
- spy functions stoped working
- DataBase class rowCount do not work as it should. HOT 4
- Still active? And one more question.. HOT 2
- Error in fleet system HOT 2
- Problem with backups HOT 5
- Problem login after restoring the database HOT 2
- Error in link HOT 8
- Error with the Chinese language HOT 1
- Can't Bypass installation after database connection and admin setup HOT 2
- Research Cancelation Bug
- Research bug HOT 2
- Bug in ResourceUpdate::SetNextQueueTechOnTop HOT 1
- incomming fleet generate error HOT 1
- 3rd party account creation or REST API? HOT 2
- Dark Matter Store HOT 6
- Adding Darkmatter to User based on Cronjob HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 2moons.