Chris027
-
Posts
705 -
Joined
-
Last visited
-
Days Won
2
Content Type
Downloads
Release Notes
IPS4 Guides
IPS4 Developer Documentation
Invision Community Blog
Development Blog
Deprecation Tracker
Providers Directory
Forums
Events
Store
Gallery
Posts posted by Chris027
-
-
Getting this error in the log, quite a bit lately. Any help is appreciated.
GeoIP Error Requested IP: xxxxxxxxxxxxxxxxx Response: IPS\Http\Response Object ( [httpResponseVersion] => 1.1 [httpResponseCode] => 401 [httpResponseText] => Unauthorized [httpHeaders] => Array ( [Content-Type] => text/plain;charset=UTF-8 [Content-Length] => 19 [Connection] => keep-alive [Date] => Mon, 24 Oct 2022 04:22:12 GMT [Set-Cookie] => AWSALBCORS=Lnu1fs2wWARTmrZHlhqIjt+6nOUFwcwpKETfmzntCo3HQAS/pboQNk9Nf0fiy0mJ3HponxIlANNYMRObhcbCT0MF3JNmlv00F+n9KblMSi8e/aQDRlP0JApQMHNP; Expires=Mon, 31 Oct 2022 04:22:12 GMT; Path=/; SameSite=None [Server] => Apache [X-Cache] => Error from cloudfront [Via] => 1.1 xxxxxxxxxxxxxxxxx.cloudfront.net (CloudFront) [X-Amz-Cf-Pop] => ORD56-P2 [X-Amz-Cf-Id] => gwZhJjkbkqCY4RH-tbPikLM7kGuEe1aIhs9g0lNW0OUq9iy2Ixt17Q== ) [cookies] => Array ( [AWSALB] => Array ( [value] => Lnu1fs2wWARTmrZHlhqIjt+6nOUFwcwpKETfmzntCo3HQAS/pboQNk9Nf0fiy0mJ3HponxIlANNYMRObhcbCT0MF3JNmlv00F+n9KblMSi8e/aQDRlP0JApQMHNP [Expires] => Mon, 31 Oct 2022 04:22:12 GMT [Path] => / ) [AWSALBCORS] => Array ( [value] => Lnu1fs2wWARTmrZHlhqIjt+6nOUFwcwpKETfmzntCo3HQAS/pboQNk9Nf0fiy0mJ3HponxIlANNYMRObhcbCT0MF3JNmlv00F+n9KblMSi8e/aQDRlP0JApQMHNP [Expires] => Mon, 31 Oct 2022 04:22:12 GMT [Path] => / [SameSite] => None ) ) [content] => License Key Invalid )
BACKTRACE
#0 /mysite/system/GeoLocation/GeoLocation.php(559): IPS\_Log::log() #1 /mysite/init.php(927) : eval()'d code(36): IPS\_GeoLocation::getByIp() #2 /mysite/system/Dispatcher/Dispatcher.php(110): IPS\Dispatcher\memberscountry_hook_dispatcherFront->init() #3 /mysite/index.php(13): IPS\_Dispatcher::i() #4 {main}
-
-
Note: All the other tasks seem to be running fine.
Question: Is there something different about this task that I should look into?
-
This morning the dailyStreamSubscriptions task started having issues. It seems stuck, and I can't figure it out. Any help is much appreciated.
System Log says this, every 20 minutes, starting about two hours ago.
RuntimeException::0
Only subclasses of Dispatcher can be instantiated
BACKTRACE
#0 /my-site-removed.tld/system/Theme/Theme.php(603): IPS\_Dispatcher::i() #1 /my-site-removed.tld/applications/gallery/Application.php(221): IPS\_Theme->css() #2 /my-site-removed.tld/applications/gallery/sources/Album/Item.php(454): IPS\gallery\_Application::outputCss() #3 /my-site-removed.tld/system/Content/Search/Results.php(191): IPS\gallery\Album\_Item::searchResultExtraData() #4 /my-site-removed.tld/applications/core/sources/Stream/Subscription.php(155): IPS\Content\Search\_Results->init() #5 /my-site-removed.tld/applications/core/sources/Stream/Subscription.php(91): IPS\core\Stream\_Subscription->getContentForStream() #6 /my-site-removed.tld/applications/core/tasks/dailyStreamSubscriptions.php(50): IPS\core\Stream\_Subscription::sendBatch() #7 /my-site-removed.tld/system/Task/Task.php(375): IPS\core\tasks\_dailyStreamSubscriptions->IPS\core\tasks\{closure}() #8 /my-site-removed.tld/applications/core/tasks/dailyStreamSubscriptions.php(51): IPS\_Task->runUntilTimeout() #9 /my-site-removed.tld/system/Task/Task.php(274): IPS\core\tasks\_dailyStreamSubscriptions->execute() #10 /my-site-removed.tld/system/Task/Task.php(237): IPS\_Task->run() #11 /my-site-removed.tld/applications/core/interface/task/task.php(58): IPS\_Task->runAndLog() #12 {main}
-
5 minutes ago, Electric_Sheep8787 said:
The phpinfo file is saying that the Loaded Configuration File and file path is loading old info from my older address that i'm migrating from, along with it being PHP Version 7.3.11 instead of PHP 8 which i'm running on the VPS. I'm not sure how that's happening.
Do you have access to the command line?
-
Do you have multiple versions of PHP installed?
-
Have you restarted PHP?
-
Very strange. I've been switching back and forth between 7.4 and 8.1 often the last few days, add both work fine.
The Classifieds app gave me a blank screen, until a fix was posted.
-
4 minutes ago, Michael R said:
After switching to back to PHP 7.4 from PHP 8.1, I can no longer access the AdminCP. I am getting the error below. How can I access AdminCP to restore?
[[Template core/admin/global/globalTemplate is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
Can you temporarily switch back to 8.1 to look at the global template for customizations?
-
-
As a temp fix, I created a .hide css class with display:none and added it to the view template of Classifieds. This way I can display enable the items without showing them.
-
OK @InvisionHQ I found the issue. When I have the option to Show other adverts from the same category enabled, everything works perfect.
As soon as I disable this option, I get the template error.
This one also causes the template issue, but only when it's disabled.
-
I continue to try to figure out what's up with this. I have a beta site up running PHP 8.1 and IPS 4.7.3. The beta site doesn't show the error. Here's the complete error on the production site:
TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /mywebsite/system/Theme/Theme.php(885) : eval()'d code:5688 Stack trace: #0 /mywebsite/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_classifieds_front_view->view() #1 /mywebsite/applications/classifieds/modules/front/classifieds/view.php(192): IPS\Theme\_SandboxedTemplate->__call() #2 /mywebsite/system/Dispatcher/Controller.php(118): IPS\classifieds\modules\front\classifieds\_view->manage() #3 /mywebsite/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #4 /mywebsite/applications/classifieds/modules/front/classifieds/view.php(59): IPS\Content\_Controller->execute() #5 /mywebsite/system/Dispatcher/Dispatcher.php(153): IPS\classifieds\modules\front\classifieds\_view->execute() #6 /mywebsite/index.php(13): IPS\_Dispatcher->run() #7 {main} BACKTRACE #0 /mywebsite/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log() #1 /mywebsite/applications/classifieds/modules/front/classifieds/view.php(192): IPS\Theme\_SandboxedTemplate->__call() #2 /mywebsite/system/Dispatcher/Controller.php(118): IPS\classifieds\modules\front\classifieds\_view->manage() #3 /mywebsite/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #4 /mywebsite/applications/classifieds/modules/front/classifieds/view.php(59): IPS\Content\_Controller->execute() #5 /mywebsite/system/Dispatcher/Dispatcher.php(153): IPS\classifieds\modules\front\classifieds\_view->execute() #6 /mywebsite/index.php(13): IPS\_Dispatcher->run() #7 {main}
-
4 hours ago, InvisionHQ said:
have you edit Classifieds template?
OK, I just checked the Classifieds template and see no edits. You can see on this one "view" referenced in the error, the Revert button is grayed out.
I also just created a new stock theme and didn't change anything. Switched to that theme, and still got the error about the template.
Last, the template error only displays when I view a product for sale in the classifieds.
-
12 minutes ago, InvisionHQ said:
yes, but you need to check the right template that generate the error.
Excellent. This is enough to get me started, tracking down my issue.
Thanks so much.
-
-
10 minutes ago, InvisionHQ said:
have you edit Classifieds template?
I don’t believe so, but will check.
If I’ve editors it, it will show the little edited symbol next to it, right? -
1 hour ago, InvisionHQ said:
I’m guessing this won’t address the issue I posted above. Bummer.
Even when using the stock IPS theme I see the issue.
Any clues how I can troubleshoot it to figure it out? -
I have no clue if this can help anyone, help me, but here is what I think I see in the logs.
Error - ...applications/classifieds/modules/front/classifieds/view.php(192): IPS\Theme\_SandboxedTemplate->__call()...
line 192 ...
\IPS\Output::i()->output = \IPS\Theme::i()->getTemplate( 'view' )->view( $this->advert, $commentsAndReviews, $this->advert->nextItem(), $this->advert->prevItem(), $cfields, $otherAdverts, $otherCatAdverts );
Error - ...applications/classifieds/modules/front/classifieds/view.php(59): IPS\Content\_Controller->execute()...
line 59
parent::execute();
-
I rolled back to php 7.4 and the error is gone.
-
Shoot, now I’m getting another error with php 8.1 and ips 4.7.3.
Template classifieds/front/view/view is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
-
I just switched my server from PHP 7.4 to 8.1 then upgraded to IPS 7.4.3.
If anyone is wondering, my CRON calls /usr/bin/php ...
That's just a link to the currently selected PHP version. I switch PHP versions using the following command on Ubuntu. It shows me the options (versions of PHP I have installed), and enables selection.
sudo update-alternatives --config php
- Randy Calvert and SeNioR-
- 2
-
24 minutes ago, Randy Calvert said:
Can’t duplicate this. My search indexes are working and no problems.
Thank you.
Are you using 4.7.3 and OpenSearch 2.1?
-
Can anyone duplicate this or offer any help?
Passkeys instead of passwords
in Feedback
Posted
I'd love passkey support.
For anyone who wants to know a little bit more, here's a fairly good article - https://arstechnica.com/information-technology/2022/10/passkeys-microsoft-apple-and-googles-password-killer-are-finally-here/