Code Monkey
Well-known member
The PHP setting for storing sessions is not the same as the xenforo setting in config.php. If you don't understand it's simply because you don't understand.
I am only quoting what you have said.The PHP setting for storing sessions is not the same as the xenforo setting in config.php. If you don't understand it's simply because you don't understand.
And I am using xcache and that's what is set in config.php.
XenForo 1.2 Update
This is easier....
This basically included my patch with the other files already included. Thus removing the need to download both.
I've sent a PM to @serene requesting if she will allow me to "take over" this add-on as I've not seen her update it.
Upload the files to correct path.Has anyone tried this with 1.2.1 using Adam Howard's download?
I get this error:
Error
Please enter a valid callback method (QapTcha_Captcha_Render::captcha_render).
As @MikeMpls has point out (thank you), you need to upload the files in your forum's root.Has anyone tried this with 1.2.1 using Adam Howard's download?
I get this error:
Error
Please enter a valid callback method (QapTcha_Captcha_Render::captcha_render).
Send me a PM with FTP details and also admin log-in details. I will install the add-on for you.I did that the first time.
After upgrading 1.1.2 --> 1.2.1 (including 4 other addons) last night, I do have that much of it down.
QapTcha has nothing to do with server side permissionsThe problem was permissions.
Most addons use 755 for directory permissions, QapTcha uses 700. This prevents the callback function from being found when you install the files logged in as root. The XML file was executed under the forum's actual account, which had no access to the directories.
So now maybe I can get those pesky spammies to completely disappear again.
It's worth noting that except for a couple profile spammers, Akismet kept the rubbish from actually being visible to anyone other than myself.
The zip file and its contents do not contain any permissions.And it has nothing to do with QapTcha functionality.
The problem is that the permissions in the unzipped directories were 700.
I did not unzip in Windows and FTP the file hierarchy to the server. I uploaded the zipped files & unzipped on the server. All of the directories ended up with 700 permissions. When the files were copied to the forum's file hierarchy ( /bin/cp -fr * ../../ ), any directories that did not already exist retained those 700 permissions.
If you try to install the addon with those 700 directory permissions on files owned by "root", the files in those directories cannot be found.
In the last 24 hours I have followed identical procedures with several other addons (XenTag, BB Code Manager, Sitemap, Xenique Framework). All went smoothly; only the QapTcha installation hiccuped.
The problem was permissions.
Most addons use 755 for directory permissions, QapTcha uses 700. This prevents the callback function from being found when you install the files logged in as root. The XML file was executed under the forum's actual account, which had no access to the directories.
So now maybe I can get those pesky spammies to completely disappear again.
It's worth noting that except for a couple profile spammers, Akismet kept the rubbish from actually being visible to anyone other than myself.
The zip file does not contain or determine the chmod values that your host assigns when you upload files or folders or extract the file on your server.@Adam Howard I too experienced the same (very similar) issue - http://xenforo.com/community/thread...trider-library-xenforo-application-php.62476/ - and had to do a "chmod -R 755 upload/*" to stop my forum immediately breaking when applying these files.
Your .zip file does when un-achiving on a Mac (OS X).The zip file does not contain or determine the chmod values that your host assigns when you upload files or folders or extract the file on your server.
That would be an Apple (Mac OS X) issue and I can't control what your Apple does to the files when you extract it.Your .zip file does when un-achiving on a Mac (OS X)
Negative, it the contents of the .zip and how it was created.That would be an Apple (Mac OS X) issue and I can't control what your Apple does to the files when you extract it.
phantom:tmp jason$ mkdir QapTcha
phantom:tmp jason$ cd QapTcha/
phantom:QapTcha jason$ ls -la
total 0
drwxr-xr-x 2 jason wheel 68 2 Nov 22:28 .
drwxrwxrwt 11 root wheel 374 2 Nov 22:28 ..
phantom:QapTcha jason$ unzip ~/Downloads/QapTcha_XenForo_1.2_Adam_v1.zip
Archive: /Users/jason/Downloads/QapTcha_XenForo_1.2_Adam_v1.zip
creating: QapTcha_XenForo_1.2_Adam_v1/
inflating: QapTcha_XenForo_1.2_Adam_v1/addon-qaptcha.xml
creating: QapTcha_XenForo_1.2_Adam_v1/upload/
creating: QapTcha_XenForo_1.2_Adam_v1/upload/js/
creating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/
inflating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/QapTcha.jquery.js
inflating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/QapTcha.jquery.min.js
inflating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/jquery-ui.js
inflating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/jquery.ui.touch.js
inflating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/qaptcha.js
creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/
creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/
creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/Captcha/
inflating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/Captcha/Render.php
creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/ControllerPublic/
inflating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/ControllerPublic/Index.php
creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/Route/
creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/Route/Prefix/
inflating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/Route/Prefix/QapTcha.php
creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/XenForo/
creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/XenForo/Captcha/
inflating: QapTcha_XenForo_1.2_Adam_v1/upload/library/XenForo/Captcha/QapTcha.php
creating: QapTcha_XenForo_1.2_Adam_v1/upload/styles/
creating: QapTcha_XenForo_1.2_Adam_v1/upload/styles/default/
creating: QapTcha_XenForo_1.2_Adam_v1/upload/styles/default/qaptcha/
extracting: QapTcha_XenForo_1.2_Adam_v1/upload/styles/default/qaptcha/sprites.png
phantom:QapTcha jason$ cd QapTcha_XenForo_1.2_Adam_v1/
phantom:QapTcha_XenForo_1.2_Adam_v1 jason$ ls -la
total 8
drwxrwxr-x@ 4 jason wheel 136 25 Aug 07:25 .
drwxr-xr-x 3 jason wheel 102 2 Nov 22:29 ..
-rw-rw-r--@ 1 jason wheel 3295 17 Nov 2012 addon-qaptcha.xml
drwx------@ 5 jason wheel 170 25 Aug 07:25 upload
phantom:QapTcha_XenForo_1.2_Adam_v1 jason$
Negative, it the contents of the .zip and how it was created.
FYI ...
Code:phantom:tmp jason$ mkdir QapTcha phantom:tmp jason$ cd QapTcha/ phantom:QapTcha jason$ ls -la total 0 drwxr-xr-x 2 jason wheel 68 2 Nov 22:28 . drwxrwxrwt 11 root wheel 374 2 Nov 22:28 .. phantom:QapTcha jason$ unzip ~/Downloads/QapTcha_XenForo_1.2_Adam_v1.zip Archive: /Users/jason/Downloads/QapTcha_XenForo_1.2_Adam_v1.zip creating: QapTcha_XenForo_1.2_Adam_v1/ inflating: QapTcha_XenForo_1.2_Adam_v1/addon-qaptcha.xml creating: QapTcha_XenForo_1.2_Adam_v1/upload/ creating: QapTcha_XenForo_1.2_Adam_v1/upload/js/ creating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/ inflating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/QapTcha.jquery.js inflating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/QapTcha.jquery.min.js inflating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/jquery-ui.js inflating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/jquery.ui.touch.js inflating: QapTcha_XenForo_1.2_Adam_v1/upload/js/qaptcha/qaptcha.js creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/ creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/ creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/Captcha/ inflating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/Captcha/Render.php creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/ControllerPublic/ inflating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/ControllerPublic/Index.php creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/Route/ creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/Route/Prefix/ inflating: QapTcha_XenForo_1.2_Adam_v1/upload/library/QapTcha/Route/Prefix/QapTcha.php creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/XenForo/ creating: QapTcha_XenForo_1.2_Adam_v1/upload/library/XenForo/Captcha/ inflating: QapTcha_XenForo_1.2_Adam_v1/upload/library/XenForo/Captcha/QapTcha.php creating: QapTcha_XenForo_1.2_Adam_v1/upload/styles/ creating: QapTcha_XenForo_1.2_Adam_v1/upload/styles/default/ creating: QapTcha_XenForo_1.2_Adam_v1/upload/styles/default/qaptcha/ extracting: QapTcha_XenForo_1.2_Adam_v1/upload/styles/default/qaptcha/sprites.png phantom:QapTcha jason$ cd QapTcha_XenForo_1.2_Adam_v1/ phantom:QapTcha_XenForo_1.2_Adam_v1 jason$ ls -la total 8 drwxrwxr-x@ 4 jason wheel 136 25 Aug 07:25 . drwxr-xr-x 3 jason wheel 102 2 Nov 22:29 .. -rw-rw-r--@ 1 jason wheel 3295 17 Nov 2012 addon-qaptcha.xml drwx------@ 5 jason wheel 170 25 Aug 07:25 upload phantom:QapTcha_XenForo_1.2_Adam_v1 jason$
2nd last line showing the permissions on the upload directory
If you don't want to repack/reissue the .zip that's fine ... just alerting everyone of the problems it poses. And since it's not just me, then obviously there is an issue with this .zip as from 22 other add-on .zip's there has not been a similar issue
Stand by..... As soon as I find a video program, I will even screen capture how this file works.
We use essential cookies to make this site work, and optional cookies to enhance your experience.