I need an update of this Class Code for myBBIntegrator - mybb

I am have an error from myBBIntegrator
thrown in /home/fxmentorcom/public_html/index.php on line 13
[21-Dec-2020 12:52:35 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; MyBBIntegrator has a deprecated constructor in /home/fxmentorcom/public_html/class.MyBBIntegrator.php on line 31

You should try using latest version of that class
https://github.com/olada/MyBBIntegrator/

Related

Unexpected error in driver invocation: invalid driver name: SWIFT_EXEC-no-coverage

When using this script on Xcode 13.2.1, the Swift compiler returns the error:
SwiftDriver Alamofire normal i386 com.apple.xcode.tools.swift.compiler (in target 'Alamofire' from project 'Pods')
...
error: Unexpected error in driver invocation: invalid driver name: SWIFT_EXEC-no-coverage
Probably because there is a conflict with the script SWIFT_EXEC-no-coverage, is there anything that can be done to sort this issue?
For the moment I had to disable this script by commenting this line out to be able to compile the project:
# config.build_settings['SWIFT_EXEC'] = '$(SRCROOT)/../Scripts/SWIFT_EXEC-no-coverage'
As we figured it out offline, now only "swiftc" is the allowed name for the swift driver - hence try renaming "SWIFT_EXEC-no-coverage" to "swiftc" (and adjust the value in Podfile).

PHP7 built-in hash() function undefined

I'm running PHP Version 7.0.5 and trying to use the hash function.
echo hash('sha256', 'The quick brown fox jumped over the lazy dog.');
The script returns the following error message:
Fatal error: Uncaught Error: Call to undefined function hash()
The PHP docs indicate that the function should be included with PHP 7:
http://php.net/manual/en/function.hash.php
(PHP 5 >= 5.1.2, PHP 7, PECL hash >= 1.1)
What am I missing? How do I add the standard hash functions to my PHP 7 environment?
I had the same issue running PHP 7.2.34. Installing php7-mod-hash fixed it for me:
opkg update
opkg install php7-mod-hash

Unable to open localhost for AEM in browser

Am trying to install AEM. I can open the quick start where it loads up first. However, when it comes to opening the same in browser(https://localhost:8080) it gives me an error "Unable to compile class for JSP". Please find the complete error:
Unable to compile class for JSP: An error occurred at line: 95 in the jsp
file: /libs/granite/core/components/login/login.jsp
The type java.lang.CharSequence cannot be resolved.
It is indirectly referenced from required .class files
92: ?request.getParameter(PARAM_NAME_REASON)
93: : "";
94:
95: if (!StringUtils.isEmpty(reason)) {
96: if (validReasons.containsKey(reason)) {
97: reason = validReasons.get(reason);
98: } else {
An error occurred at line: 95 in the jsp file:
/libs/granite/core/components/login/login.jsp
The method isEmpty(CharSequence) in the type StringUtils is not applicable for the arguments (String)
92: ? request.getParameter(PARAM_NAME_REASON)
93: : "";
94:
95: if (!StringUtils.isEmpty(reason)) {
96: if (validReasons.containsKey(reason)) {
97: reason = validReasons.get(reason);
98: } else {
Cannot serve request to /libs/granite/core/content/login.html in /libs/granite/core/components/login/login.jsp
Please assist me on the same.
This error usually occurs when you try to run AEM with a higher version of JDK than what it supports (most commonly running your vanilla AEM 6.0 with Java 8).
If that is the case, either revert to JDK7 or install Service Pack 2 for AEM 6.0 which supports JDK 8.
For steps on installing the service pack to fix this issue refer this thread in Adobe Forums.

Python Image Library: AttributeError: 'NoneType' object has no attribute XXX

I opened a picture with PIL, but when I tried to use split() to split the channels I got following error:
AttributeError: 'NoneType' object has no attribute 'bands'
import Image
img = Image.open('IMG_0007.jpg')
img.split()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/blum/<ipython console> in <module>()
/usr/lib/python2.6/dist-packages/PIL/Image.pyc in split(self)
1495 "Split image into bands"
1496
-> 1497 if self.im.bands == 1:
1498 ims = [self.copy()]
1499 else:
AttributeError: 'NoneType' object has no attribute 'bands'
With googling I found this comment on SO, stating that PIL is sometimes 'lazy' and 'forgets' to load after opening. So you have to do it like this:
import Image
img = Image.open('IMG_0007.jpg')
img.load()
img.split()
Please +1 also the original comment! This person did the real work.
My problem was that PIL was not installed correctly. When trying to read a png I'd get that error. My compilation summary yielded
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.3 (default, Apr 21 2012, 01:05:55)
[GCC 4.6.3]
--------------------------------------------------------------------
*** TKINTER support not available
*** JPEG support not available
*** ZLIB (PNG/ZIP) support not available <===============
*** FREETYPE2 support not available
*** LITTLECMS support not available
--------------------------------------------------------------------
I then opted to "pip uninstall pil" and used the Synaptic Package Manager instead. That fixed it.

ensime scala errors (class scala.Array not found, object scala not found)

I've installed ensime according to the README.md file, however, I get errors in the inferior-ensime-server buffer with the following:
INFO: Fatal Error: scala.tools.nsc.MissingRequirementError: object scala not found.
scala.tools.nsc.MissingRequirementError: object scala not found.
at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:516)
at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definitions.scala:43)
at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Definitions.scala:44)
at scala.tools.nsc.symtab.Definitions$definitions$.UnitClass(Definitions.scala:89)
at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scala:786)
at scala.tools.nsc.Global$Run.(Global.scala:593)
at scala.tools.nsc.interactive.Global$TyperRun.(Global.scala:473)
at scala.tools.nsc.interactive.Global.newTyperRun(Global.scala:535)
at scala.tools.nsc.interactive.Global.reloadSources(Global.scala:289)
at scala.tools.nsc.interactive.Global$$anonfun$reload$1.apply(Global.scala:300)
at scala.tools.nsc.interactive.Global$$anonfun$reload$1.apply(Global.scala:300)
at scala.tools.nsc.interactive.Global.respond(Global.scala:276)
at scala.tools.nsc.interactive.Global.reload(Global.scala:300)
at scala.tools.nsc.interactive.CompilerControl$$anon$1.apply$mcV$sp(CompilerControl.scala:81)
at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:132)
at scala.tools.nsc.interactive.Global$$anon$2.run(Global.scala:192)
also:
INFO: Fatal Error: scala.tools.nsc.MissingRequirementError: class scala.Array not found.
scala.tools.nsc.MissingRequirementError: class scala.Array not found.
at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Definitions.scala:516)
at scala.tools.nsc.symtab.Definitions$definitions$.getClass(Definitions.scala:474)
at scala.tools.nsc.symtab.Definitions$definitions$.ArrayClass(Definitions.scala:217)
at scala.tools.nsc.backend.icode.TypeKinds$REFERENCE.(TypeKinds.scala:258)
at scala.tools.nsc.backend.icode.GenICode$ICodePhase.(GenICode.scala:55)
at scala.tools.nsc.backend.icode.GenICode.newPhase(GenICode.scala:43)
at scala.tools.nsc.backend.icode.GenICode.newPhase(GenICode.scala:25)
at scala.tools.nsc.Global$Run$$anonfun$4.apply(Global.scala:606)
at scala.tools.nsc.Global$Run$$anonfun$4.apply(Global.scala:605)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:62)
at scala.collection.immutable.List.foreach(List.scala:46)
at scala.tools.nsc.Global$Run.(Global.scala:605)
at scala.tools.nsc.interactive.Global$TyperRun.(Global.scala:473)
at scala.tools.nsc.interactive.Global.newTyperRun(Global.scala:535)
at scala.tools.nsc.interactive.Global.reloadSources(Global.scala:289)
at scala.tools.nsc.interactive.Global.typedTreeAt(Global.scala:309)
at scala.tools.nsc.interactive.Global$$anonfun$getTypedTreeAt$1.apply(Global.scala:326)
at scala.tools.nsc.interactive.Global$$anonfun$getTypedTreeAt$1.apply(Global.scala:326)
at scala.tools.nsc.interactive.Global.respond(Global.scala:276)
at scala.tools.nsc.interactive.Global.getTypedTreeAt(Global.scala:326)
at scala.tools.nsc.interactive.CompilerControl$$anon$2.apply$mcV$sp(CompilerControl.scala:89)
at scala.tools.nsc.interactive.Global.pollForWork(Global.scala:132)
at scala.tools.nsc.interactive.Global$$anon$2.run(Global.scala:192)
Also none of the type identification works for me, I get 'NA' if I get anything at all. C-c t causes emacs to lock up.
I'm running:
Ubuntu 10.04 (64bit version)
emacs 23.1.50.1
ensime from git (as of 3 May 2010)
scala is version 2.8.0.RC1
java is 1.6.0_20 (from sun)
here is a copy of the log: http://dl.dropbox.com/u/5309017/ensime.log
Thanks!
Jeff
"scala.tools.nsc.MissingRequirementError: object scala not found" usually means that the standard Scala libarary cannot be found. Have a look at the inferior ensime server buffer, and it should print the classpath that's being used. Here's an excerpt from mine:
INFO: [Classpath = /usr/lib/jvm/java-6-openjdk/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/charsets.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/ext/pulse-java.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-6-openjdk/jre/lib/ext/gnome-java-bridge.jar:/home/aemon/src/misc/ensime/lib/jnotify/jnotify-0.93.jar:/home/aemon/src/misc/ensime/lib/scala/scala-library.jar:/home/aemon/src/misc/ensime/lib/scala/scala-compiler.jar]
Notice the scala-library.jar, second from the end. You probably have to modify your .ensime file so that the :classpath field points to the library jar.